mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 06:06:23 +00:00
Fix crash with algalon
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user