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
+1 -1
View File
@@ -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())
+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;