*Fix Healing Way stack counting in Healing Wave's script.

--HG--
branch : trunk
This commit is contained in:
Anubisss
2009-05-04 20:21:14 +02:00
parent 4dbaab09e5
commit 0373704851
+6 -1
View File
@@ -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;