Fix Grievious bite (48920): now if removed when target is fully healed

--HG--
branch : trunk
This commit is contained in:
Tartalo
2010-06-20 00:37:02 +02:00
parent f690bafd3e
commit d024e563f8

View File

@@ -2913,6 +2913,10 @@ void Spell::SpellDamageHeal(uint32 /*i*/)
else
addhealth = caster->SpellHealingBonus(unitTarget, m_spellInfo, addhealth, HEAL);
// Remove Grievious bite if fully healed
if (unitTarget->HasAura(48920) && (unitTarget->GetHealth() + addhealth >= unitTarget->GetMaxHealth()))
unitTarget->RemoveAura(48920);
m_damage -= addhealth;
}
}