From b35dea17036ed6e9474b4c2fbef9bd9bdee36468 Mon Sep 17 00:00:00 2001 From: Sergey Date: Fri, 11 Nov 2011 10:33:56 +0600 Subject: [PATCH] Update src/game/SpellEffects.cpp --- src/game/SpellEffects.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 136565610..2f6672e31 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -6703,6 +6703,9 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx) } case 45141: // Burn { + if (!unitTarget) + return; + unitTarget->CastSpell(unitTarget, 46394, true, NULL, NULL, m_caster->GetObjectGuid()); return; } @@ -6717,10 +6720,11 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx) } case 45185: // Stomp { - // Remove the burn effect - if (unitTarget->HasAura(46394)) - unitTarget->RemoveAurasDueToSpell(46394); + if (!unitTarget) + return; + // Remove the burn effect + unitTarget->RemoveAurasDueToSpell(46394); return; } case 45206: // Copy Off-hand Weapon