mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +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)
|
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)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user