From 884e4f8eccfe159af66c55a5b913de7254bf7a2a Mon Sep 17 00:00:00 2001 From: Laise Date: Mon, 10 May 2010 19:29:41 +0300 Subject: [PATCH] [9858] Restore work of 1064 and ranks, broken in [9854] --- src/game/SpellEffects.cpp | 18 ++++++++++-------- src/shared/revision_nr.h | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 8021e85a8..af4e299b6 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -3147,14 +3147,16 @@ void Spell::EffectHeal(SpellEffectIndex /*eff_idx*/) // 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; - addhealth += addhealth/4; - unitTarget->RemoveAura(riptide); + if (unitTarget == m_targets.getUnitTarget()) + { + // check for Riptide + Aura* riptide = unitTarget->GetAura(SPELL_AURA_PERIODIC_HEAL, SPELLFAMILY_SHAMAN, 0, 0x00000010, caster->GetGUID()); + if (riptide) + { + addhealth += addhealth/4; + unitTarget->RemoveAura(riptide); + } + } } addhealth = caster->SpellHealingBonusDone(unitTarget, m_spellInfo, addhealth, HEAL); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 02b5d3f69..8ebea81a8 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 "9857" + #define REVISION_NR "9858" #endif // __REVISION_NR_H__