From 66f0e6662f7391a93e8ba5f3b85f4a1a4e553fa2 Mon Sep 17 00:00:00 2001 From: pasdVn Date: Sat, 6 Mar 2010 22:20:03 +0300 Subject: [PATCH] [9541] Implement first target of spell 1064 and ranks boost from 61301. Signed-off-by: VladimirMangos --- src/game/SpellEffects.cpp | 15 ++++++++++++++- src/shared/revision_nr.h | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index a6b0dcee2..b786e434a 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -3072,7 +3072,20 @@ void Spell::EffectHeal(SpellEffectIndex /*eff_idx*/) else addhealth = caster->SpellHealingBonus(unitTarget, m_spellInfo, addhealth, HEAL); - m_healing+=addhealth; + m_healing += addhealth; + + // Chain Healing + if (m_spellInfo->SpellFamilyName == SPELLFAMILY_SHAMAN && m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000000100)) + { + // check for Riptide + if (unitTarget != m_targets.getUnitTarget()) + return; + Aura* riptide = unitTarget->GetAura(SPELL_AURA_PERIODIC_HEAL, SPELLFAMILY_SHAMAN, 0, 0x00000010, caster->GetGUID()); + if (!riptide) + return; + m_healing += m_healing/4; + unitTarget->RemoveAura(riptide); + } } } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index fe61a293b..8753a8ab8 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 "9540" + #define REVISION_NR "9541" #endif // __REVISION_NR_H__