From a6ea82682df29d32fdaf06763232f9739963301a Mon Sep 17 00:00:00 2001 From: Feanordev Date: Tue, 18 Jan 2011 16:32:12 +0300 Subject: [PATCH] [11037] Max health dependent heal bonus for spell 55428 and ranks. Signed-off-by: VladimirMangos --- src/game/SpellAuras.cpp | 6 ++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 8a126e151..cf38fb6b4 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -4972,6 +4972,12 @@ void Aura::HandlePeriodicHeal(bool apply, bool /*Real*/) holy = int32(holy * 377 / 1000); 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()); } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index f413ffc3f..1a052b7ef 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11036" + #define REVISION_NR "11037" #endif // __REVISION_NR_H__