From e69eccf071a0d2cc881b0145319cdf0ba7f0c37a Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Tue, 5 Sep 2023 19:24:16 +0800 Subject: [PATCH] portal reagent for mage --- src/PlayerbotFactory.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/PlayerbotFactory.cpp b/src/PlayerbotFactory.cpp index 08783829..3bf9534b 100644 --- a/src/PlayerbotFactory.cpp +++ b/src/PlayerbotFactory.cpp @@ -1432,7 +1432,10 @@ void PlayerbotFactory::InitBags() uint16 dest; if (!CanEquipUnseenItem(slot, dest, newItemId)) continue; - + + if (old_bag) { + bot->DestroyItem(INVENTORY_SLOT_BAG_0, slot, true); + } Item* newItem = bot->EquipNewItem(dest, newItemId, true); if (newItem) { @@ -2421,6 +2424,8 @@ void PlayerbotFactory::InitReagents() break; case CLASS_MAGE: items.push_back({17020, 40}); + items.push_back({17031, 40}); // portal + items.push_back({17032, 40}); // portal // bot->StoreNewItemInBestSlots(17020, 40); // Arcane Powder break; case CLASS_DRUID: