Core/Misc: Fix a memory leak in spell_dbc
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user