mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 22:07:52 +00:00
Fix crash with algalon
This commit is contained in:
@@ -1322,8 +1322,9 @@ class spell_algalon_big_bang : public SpellScriptLoader
|
|||||||
|
|
||||||
void CheckTargets()
|
void CheckTargets()
|
||||||
{
|
{
|
||||||
if (!_targetCount)
|
Unit *caster = GetCaster();
|
||||||
GetCaster()->GetAI()->DoAction(ACTION_ASCEND);
|
if (!_targetCount && caster && caster->GetAI())
|
||||||
|
caster->GetAI()->DoAction(ACTION_ASCEND);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Register()
|
void Register()
|
||||||
|
|||||||
Reference in New Issue
Block a user