mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
- Update method in QueryItemUsageForEquip (#1701)
This commit is contained in:
@@ -236,7 +236,7 @@ ItemUsage ItemUsageValue::Calculate()
|
|||||||
|
|
||||||
ItemUsage ItemUsageValue::QueryItemUsageForEquip(ItemTemplate const* itemProto, int32 randomPropertyId)
|
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;
|
return ITEM_USAGE_NONE;
|
||||||
|
|
||||||
if (itemProto->InventoryType == INVTYPE_NON_EQUIP)
|
if (itemProto->InventoryType == INVTYPE_NON_EQUIP)
|
||||||
|
|||||||
Reference in New Issue
Block a user