aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorelecyb <svn@electrocyber.com.ar>2011-12-11 19:11:22 -0300
committerelecyb <svn@electrocyber.com.ar>2011-12-11 19:11:22 -0300
commitaf32d0f616657a8a60065b5742339e9e87984d64 (patch)
tree467e28b2f77d5eaf08de189d0b84cd67c32159bc /src
parentaefbc5701c9a945fe29881161c16488b7204d431 (diff)
Core/Spells: Fixed Healing Stream Totem bonus and Glyph of Healing Stream Totem
Closes #2165
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Spells/SpellEffects.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 4eb514c5869..839a466f0f0 100755
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -1421,11 +1421,19 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
{
if (!unitTarget)
return;
- // Restorative Totems
if (Unit* owner = m_caster->GetOwner())
+ {
+ if (m_triggeredByAuraSpell)
+ damage = int32(owner->SpellHealingBonus(unitTarget, m_triggeredByAuraSpell, damage, HEAL));
+
+ // Restorative Totems
if (AuraEffect* dummy = owner->GetAuraEffect(SPELL_AURA_DUMMY, SPELLFAMILY_SHAMAN, 338, 1))
AddPctN(damage, dummy->GetAmount());
+ // Glyph of Healing Stream Totem
+ if (AuraEffect const* aurEff = owner->GetAuraEffect(55456, EFFECT_0))
+ AddPctN(damage, aurEff->GetAmount());
+ }
m_caster->CastCustomSpell(unitTarget, 52042, &damage, 0, 0, true, 0, 0, m_originalCasterGUID);
return;
}