diff --git a/src/strategy/values/ItemUsageValue.cpp b/src/strategy/values/ItemUsageValue.cpp index e6dc5cb8..b0630b86 100644 --- a/src/strategy/values/ItemUsageValue.cpp +++ b/src/strategy/values/ItemUsageValue.cpp @@ -59,7 +59,7 @@ ItemUsage ItemUsageValue::Calculate() if (bot->HasSpell(proto->Spells[2].SpellId)) needItem = false; else - needItem = bot->CanUseItem(proto) == EQUIP_ERR_OK; + needItem = bot->BotCanUseItem(proto) == EQUIP_ERR_OK; } }