mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 10:00:02 +01:00
- Update method in QueryItemUsageForEquip (#1701)
This commit is contained in:
parent
e00c8fca2a
commit
5b128b3300
@ -236,7 +236,7 @@ ItemUsage ItemUsageValue::Calculate()
|
||||
|
||||
ItemUsage ItemUsageValue::QueryItemUsageForEquip(ItemTemplate const* itemProto, int32 randomPropertyId)
|
||||
{
|
||||
if (bot->CanUseItem(itemProto) != EQUIP_ERR_OK)
|
||||
if (bot->BotCanUseItem(itemProto) != EQUIP_ERR_OK)
|
||||
return ITEM_USAGE_NONE;
|
||||
|
||||
if (itemProto->InventoryType == INVTYPE_NON_EQUIP)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user