Item spell cast

This commit is contained in:
Yunfan Li
2024-02-08 13:18:36 +08:00
parent 01b04742b7
commit 74830ea137
4 changed files with 6 additions and 11 deletions

View File

@@ -230,10 +230,8 @@ bool UseItemAction::UseItem(Item* item, ObjectGuid goGuid, Item* itemTarget, Uni
targetSelected = true;
out << " on "<< chat->FormatItem(itemForSpell->GetTemplate());
}
Spell* spell = new Spell(bot, spellInfo, TRIGGERED_NONE);
botAI->WaitForSpellCast(spell);
delete spell;
uint32 castTime = spellInfo->CalcCastTime();
botAI->SetNextCheckDelay(castTime + sPlayerbotAIConfig->reactDelay);
}
break;