mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-14 09:29:09 +00:00
reduce item instance guid consume
This commit is contained in:
@@ -1409,7 +1409,10 @@ void PlayerbotFactory::InitBags()
|
||||
for (uint8 slot = INVENTORY_SLOT_BAG_START; slot < INVENTORY_SLOT_BAG_END; ++slot)
|
||||
{
|
||||
uint32 newItemId = 23162;
|
||||
|
||||
Item *old_bag = bot->GetItemByPos(INVENTORY_SLOT_BAG_0, slot);
|
||||
if (old_bag && old_bag->GetTemplate()->ItemId == newItemId) {
|
||||
continue;
|
||||
}
|
||||
uint16 dest;
|
||||
if (!CanEquipUnseenItem(slot, dest, newItemId))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user