From f22faea5d37a9970ecb8fc395bfb5385d733648e Mon Sep 17 00:00:00 2001 From: IamTirion Date: Sat, 21 Mar 2026 20:42:19 +0800 Subject: [PATCH 1/2] Update ObjectMgr.cpp --- src/game/ObjectMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 96d33ac48ac..1be6d4d44bc 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -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) From 5a1127d615b3b57cc6d00772323f628a9fac19b1 Mon Sep 17 00:00:00 2001 From: IamTirion Date: Sun, 29 Mar 2026 21:34:59 +0800 Subject: [PATCH 2/2] Update ObjectMgr.cpp --- src/game/ObjectMgr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 1be6d4d44bc..c904a7ff93e 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -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); } }