aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaelima <kaelima@live.se>2011-12-12 03:09:19 -0800
committerKaelima <kaelima@live.se>2011-12-12 03:09:19 -0800
commita7a245b561be32ebf97e4beefa5b42d97dc1f11e (patch)
treedb8d33623b0d66cb15c45b9f185c8382ec688170
parent9c99aee6869870016f2db92ec95dcfe0c7b17591 (diff)
parentaf32d0f616657a8a60065b5742339e9e87984d64 (diff)
Merge pull request #4273 from elecyb/healtotem
Core/Spells: Fix for Healing Stream Totem bonus and Glyph of Healing Stream Totem
-rw-r--r--sql/updates/world/2011_12_11_00_world_spell_bonus_data.sql3
-rwxr-xr-xsrc/server/game/Spells/SpellEffects.cpp10
2 files changed, 12 insertions, 1 deletions
diff --git a/sql/updates/world/2011_12_11_00_world_spell_bonus_data.sql b/sql/updates/world/2011_12_11_00_world_spell_bonus_data.sql
new file mode 100644
index 00000000000..6e53fccf210
--- /dev/null
+++ b/sql/updates/world/2011_12_11_00_world_spell_bonus_data.sql
@@ -0,0 +1,3 @@
+DELETE FROM `spell_bonus_data` WHERE `entry` IN (52042,5672);
+INSERT INTO `spell_bonus_data` (`entry`, `direct_bonus`, `dot_bonus`,`ap_bonus`, `ap_dot_bonus`, `comments`) VALUES
+('5672','0.0827','-1','-1','-1','Shaman - Healing Stream Totem Rank 1');
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;
}