Core/Misc: Fix a memory leak in spell_dbc
This commit is contained in:
@@ -10458,7 +10458,7 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
|
||||
}
|
||||
// Drain Soul - increased damage for targets under 25 % HP
|
||||
if (spellProto->SpellFamilyFlags[0] & 0x00004000)
|
||||
if (HasAura(200000))
|
||||
if (HasAura(100001))
|
||||
DoneTotalMod *= 4;
|
||||
// Shadow Bite (15% increase from each dot)
|
||||
if (spellProto->SpellFamilyFlags[1] & 0x00400000 && isPet())
|
||||
|
||||
@@ -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