Fix Grievious bite (48920): now if removed when target is fully healed
--HG-- branch : trunk
This commit is contained in:
1 parent
f690bafd3e
commit
d024e563f8
1 file changed
+4
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user