Fix crash with algalon
This commit is contained in:
parent
8cee0fe498
commit
d177e923ca
1 changed files with 3 additions and 2 deletions
|
|
@ -1322,8 +1322,9 @@ class spell_algalon_big_bang : public SpellScriptLoader
|
|||
|
||||
void CheckTargets()
|
||||
{
|
||||
if (!_targetCount)
|
||||
GetCaster()->GetAI()->DoAction(ACTION_ASCEND);
|
||||
Unit *caster = GetCaster();
|
||||
if (!_targetCount && caster && caster->GetAI())
|
||||
caster->GetAI()->DoAction(ACTION_ASCEND);
|
||||
}
|
||||
|
||||
void Register()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue