Core/Script:

Added missing NULL pointer check
This commit is contained in:
zorix committed 2013-09-18 23:31:41 +02:00
1 parent e740332c0b
commit ff274cda0b
1 file changed
+1 -1
+1 -1
View File
@@ -112,7 +112,7 @@ class spell_warl_aftermath : public SpellScriptLoader
{
PreventDefaultAction();
if (roll_chance_i(aurEff->GetAmount()))
if (eventInfo.GetProcTarget() && roll_chance_i(aurEff->GetAmount()))
GetTarget()->CastSpell(eventInfo.GetProcTarget(), SPELL_WARLOCK_AFTERMATH_STUN, true, NULL, aurEff);
}
}