From 03737048515b0bd0bed130887716c45a98ecd686 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Mon, 4 May 2009 20:21:14 +0200 Subject: [PATCH] *Fix Healing Way stack counting in Healing Wave's script. --HG-- branch : trunk --- src/game/Unit.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c9769cf89f..6c4e171e4f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -9033,8 +9033,13 @@ uint32 Unit::SpellHealingBonus(SpellEntry const *spellProto, uint32 healamount, int32 pctMod = 0; Unit::AuraList const& auraDummy = pVictim->GetAurasByType(SPELL_AURA_DUMMY); for(Unit::AuraList::const_iterator itr = auraDummy.begin(); itr!=auraDummy.end(); ++itr) + { if((*itr)->GetId() == 29203) - pctMod += (*itr)->GetModifier()->m_amount; + { + pctMod = (*itr)->GetModifier()->m_amount * (*itr)->GetStackAmount(); + break; + } + } // Apply bonus if (pctMod) heal = heal * (100 + pctMod) / 100;