aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWin32 <none@none>2010-01-04 11:05:19 +0200
committerWin32 <none@none>2010-01-04 11:05:19 +0200
commite8ebeff6bf8eaef111eedb0edff44c7bc0d3107b (patch)
tree5e5767f3897b1188fdf081a965b61ebf5818a99c /src
parentbaf0cfa6d8a8d35c7198cb5917c9d996cd2a72c9 (diff)
fix Restorative Totems
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 9f5976fcd0c..98a4eaf3bc6 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -1958,7 +1958,13 @@ void Spell::EffectDummy(uint32 i)
// Healing Stream Totem
if(m_spellInfo->SpellFamilyFlags[0] & SPELLFAMILYFLAG_SHAMAN_HEALING_STREAM)
{
- if (unitTarget)
+ if (!unitTarget)
+ return;
+ // Restorative Totems
+ if(Unit *owner = m_caster->GetOwner())
+ if (AuraEffect *dummy = owner->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_SHAMAN, 338, 1))
+ damage += damage * dummy->GetAmount() / 100;
+
m_caster->CastCustomSpell(unitTarget, 52042, &damage, 0, 0, true, 0, 0, m_originalCasterGUID);
return;
}