diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index 44e601bf..23d073f5 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -14,6 +14,7 @@ #include "BudgetValues.h" #include "ChannelMgr.h" #include "CharacterPackets.h" +#include "ChatHelper.h" #include "Common.h" #include "CreatureAIImpl.h" #include "CreatureData.h" @@ -283,6 +284,15 @@ void PlayerbotAI::UpdateAI(uint32 elapsed, bool minimal) return; } + GameObject* goSpellTarget = currentSpell->m_targets.GetGOTarget(); + + if (goSpellTarget && !goSpellTarget->isSpawned()) + { + InterruptSpell(); + YieldThread(GetReactDelay()); + return; + } + bool isHeal = false; bool isSingleTarget = true;