aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnubisss <none@none>2009-05-04 20:21:14 +0200
committerAnubisss <none@none>2009-05-04 20:21:14 +0200
commit03737048515b0bd0bed130887716c45a98ecd686 (patch)
tree8cbcbc55d03f113828ffc06e64c2e9bc184a98fe /src
parent4dbaab09e5583a548f1558bb1cbda8b53cf7c09c (diff)
*Fix Healing Way stack counting in Healing Wave's script.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index c9769cf89f2..6c4e171e4f1 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;