mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
DestroyItem in InitEquipment
This commit is contained in:
@@ -1246,8 +1246,9 @@ void PlayerbotFactory::InitEquipment(bool incremental)
|
|||||||
}
|
}
|
||||||
if (oldItem)
|
if (oldItem)
|
||||||
{
|
{
|
||||||
bot->RemoveItem(INVENTORY_SLOT_BAG_0, slot, true);
|
// bot->RemoveItem(INVENTORY_SLOT_BAG_0, slot, true);
|
||||||
oldItem->DestroyForPlayer(bot, false);
|
bot->DestroyItem(INVENTORY_SLOT_BAG_0, slot, true);
|
||||||
|
// oldItem->DestroyForPlayer(bot, false);
|
||||||
}
|
}
|
||||||
uint16 dest;
|
uint16 dest;
|
||||||
if (!CanEquipUnseenItem(slot, dest, bestItemForSlot)) {
|
if (!CanEquipUnseenItem(slot, dest, bestItemForSlot)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user