[11037] Max health dependent heal bonus for spell 55428 and ranks.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Feanordev 2011-01-18 16:32:12 +03:00 committed by VladimirMangos
parent b46731ff7c
commit a6ea82682d
2 changed files with 7 additions and 1 deletions

View file

@ -4972,6 +4972,12 @@ void Aura::HandlePeriodicHeal(bool apply, bool /*Real*/)
holy = int32(holy * 377 / 1000); holy = int32(holy * 377 / 1000);
m_modifier.m_amount += ap > holy ? ap : holy; m_modifier.m_amount += ap > holy ? ap : holy;
} }
// Lifeblood
else if (GetSpellProto()->SpellIconID == 3088 && GetSpellProto()->SpellVisual[0] == 8145)
{
int32 healthBonus = int32 (0.0032f * caster->GetMaxHealth());
m_modifier.m_amount += healthBonus;
}
m_modifier.m_amount = caster->SpellHealingBonusDone(target, GetSpellProto(), m_modifier.m_amount, DOT, GetStackAmount()); m_modifier.m_amount = caster->SpellHealingBonusDone(target, GetSpellProto(), m_modifier.m_amount, DOT, GetStackAmount());
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11036" #define REVISION_NR "11037"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__