*Fix the bug that Vampiric Blood heals 15 instead of 15%.
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user