Core/Misc: Fix a memory leak in spell_dbc

This commit is contained in:
Shocker
2011-05-13 12:17:21 +03:00
parent f6e357902f
commit 45f7aa1fd6
4 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -1615,14 +1615,14 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster,
if (apply)
{
if (target != caster && !target->HealthAbovePct(25))
caster->CastSpell(caster, 200000, true);
caster->CastSpell(caster, 100001, true);
}
else
{
if (target != caster)
caster->RemoveAurasDueToSpell(GetId());
else
caster->RemoveAurasDueToSpell(200000);
caster->RemoveAurasDueToSpell(100001);
}
}
break;