mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 10:30:01 +01:00
DestroyItem in InitEquipment
This commit is contained in:
parent
946ac597b9
commit
7063c5b563
@ -1246,8 +1246,9 @@ void PlayerbotFactory::InitEquipment(bool incremental)
|
||||
}
|
||||
if (oldItem)
|
||||
{
|
||||
bot->RemoveItem(INVENTORY_SLOT_BAG_0, slot, true);
|
||||
oldItem->DestroyForPlayer(bot, false);
|
||||
// bot->RemoveItem(INVENTORY_SLOT_BAG_0, slot, true);
|
||||
bot->DestroyItem(INVENTORY_SLOT_BAG_0, slot, true);
|
||||
// oldItem->DestroyForPlayer(bot, false);
|
||||
}
|
||||
uint16 dest;
|
||||
if (!CanEquipUnseenItem(slot, dest, bestItemForSlot)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user