*Fix the bug that Vampiric Blood heals 15 instead of 15%.

--HG--
branch : trunk
This commit is contained in:
Anubisss
2009-06-03 17:29:29 +02:00
parent 0ba4878c48
commit 1168492151
+4
View File
@@ -4979,6 +4979,10 @@ void AuraEffect::HandleAuraModIncreaseHealth(bool apply, bool Real, bool changeA
{ {
if(apply) if(apply)
{ {
// Vampiric Blood
if(GetSpellProto()->Id == 55233)
m_amount = m_target->GetMaxHealth() * m_amount / 100;
m_target->HandleStatModifier(UNIT_MOD_HEALTH, TOTAL_VALUE, float(m_amount), apply); m_target->HandleStatModifier(UNIT_MOD_HEALTH, TOTAL_VALUE, float(m_amount), apply);
m_target->ModifyHealth(m_amount); m_target->ModifyHealth(m_amount);
} }