- Update method in QueryItemUsageForEquip (#1701)

This commit is contained in:
kadeshar
2025-10-09 08:02:44 +02:00
committed by GitHub
parent e00c8fca2a
commit 5b128b3300

View File

@@ -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)