Rogue poison

This commit is contained in:
Yunfan Li
2024-03-05 17:52:30 +08:00
parent 2c17ac1442
commit fdf1e2ec1c
8 changed files with 79 additions and 12 deletions

View File

@@ -86,7 +86,7 @@ bool UseItemAction::UseItem(Item* item, ObjectGuid goGuid, Item* itemTarget, Uni
if (item->GetTemplate()->Spells[i].SpellId > 0)
{
spellId = item->GetTemplate()->Spells[i].SpellId;
if (!botAI->CanCastSpell(spellId, bot, false, item)) {
if (!botAI->CanCastSpell(spellId, bot, false, itemTarget, item)) {
return false;
}
}