From 7f05d3f6bf8006d7236823bfcd4ea33997cdc325 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Thu, 26 Sep 2024 20:31:58 +0800 Subject: [PATCH] [Spell cast] Fix channeled spell cast (mind control) --- src/PlayerbotAI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index 9e5ed5a5..b2c35166 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -314,6 +314,8 @@ void PlayerbotAI::UpdateAI(uint32 elapsed, bool minimal) AllowActivity(); Spell* currentSpell = bot->GetCurrentSpell(CURRENT_GENERIC_SPELL); + if (!currentSpell) + currentSpell = bot->GetCurrentSpell(CURRENT_CHANNELED_SPELL); if (currentSpell && currentSpell->getState() == SPELL_STATE_PREPARING) { if (currentSpell->m_targets.GetUnitTarget() && !currentSpell->m_targets.GetUnitTarget()->IsAlive() &&