Skip to content

Commit 5774f01

Browse files
committed
More cleanup.
1 parent 38ae4d1 commit 5774f01

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/ptr_template.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,12 @@ class createTemplate : public PlayerScript {
5252
if (sConfigMgr->GetOption<bool>("TemplateDK", true))
5353
{
5454
if (sConfigMgr->GetOption<bool>("TemplateEquipGear", true) && sConfigMgr->GetOption<bool>("TemplateBagGear", true))
55-
{
5655
TemplateHelperItemCleanup(player, SCOPE_ALL, itemRoutine);
57-
}
5856
else if (sConfigMgr->GetOption<bool>("TemplateBagGear", true))
59-
{
6057
TemplateHelperItemCleanup(player, SCOPE_BAGS, itemRoutine);
61-
}
6258
else if (sConfigMgr->GetOption<bool>("TemplateEquipGear", true))
63-
{
6459
TemplateHelperItemCleanup(player, SCOPE_EQUIPPED, itemRoutine);
65-
}
60+
6661
AddTemplateDeathKnight(player);
6762
player->SaveToDB(false, false);
6863
LOG_DEBUG("module", "Finished applying death knight case for template character {}.", player->GetGUID().ToString());

0 commit comments

Comments
 (0)