Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/game/ObjectMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12091,9 +12091,9 @@ void ObjectMgr::ApplyPremadeGearTemplateToPlayer(uint32 entry, Player* pPlayer)
pPlayer->SetUInt32Value(PLAYER_XP, 0);
}

// Unequip current gear
// Delete current gear
for (int i = EQUIPMENT_SLOT_START; i < EQUIPMENT_SLOT_END; ++i)
pPlayer->AutoUnequipItemFromSlot(i);
pPlayer->DestroyItem(INVENTORY_SLOT_BAG_0, i, true);

// Learn Dual Wield Specialization
if (pPlayer->GetClass() == CLASS_WARRIOR || pPlayer->GetClass() == CLASS_ROGUE || pPlayer->GetClass() == CLASS_HUNTER)
Expand All @@ -12107,6 +12107,7 @@ void ObjectMgr::ApplyPremadeGearTemplateToPlayer(uint32 entry, Player* pPlayer)
ItemPrototype const* pItem = GetItemPrototype(item.itemId);

pPlayer->SatisfyItemRequirements(pItem);
pPlayer->DestroyItemCount(item.itemId, 1, true);
pPlayer->StoreNewItemInBestSlots(item.itemId, 1, item.enchantId);
}
}
Expand Down
Loading