What bug does the patch fix? What features does the patch add?
* Add bonus heal. * "Glyph of Healing Stream Totem" http://www.wowhead.com/?item=41533. * "Restorative Totems" Talent bonus http://www.wowhead.com/?spell=16187, http://www.wowhead.com/?spell=16205, http://www.wowhead.com/?spell=16206. For which repository revision was the patch created?
9292.
Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.
https://mangos.lighthouseapp.com/projects/18208/tickets/218-shaman-healing-stream-totem
Who has been writing this patch? Please include either forum user names or email addresses.
[D4RK]Doom-Lord
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index f9b7926..ed8f188 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -1918,7 +1918,23 @@ void Spell::EffectDummy(uint32 i)
if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000002000))
{
if (unitTarget)
+ {
+ if (Unit *owner = m_caster->GetOwner())
+ damage += int32(owner->SpellBaseHealingBonus(GetSpellSchoolMask(m_spellInfo)) * 0.045f);
+ // Restorative Totems (Healing Stream Totem)
+ if (Unit *owner = m_caster->GetOwner())
+ {
+ Unit::AuraList const& mDummyAuras = owner->GetAurasByType(SPELL_AURA_DUMMY);
+ for(Unit::AuraList::const_iterator i = mDummyAuras.begin(); i != mDummyAuras.end(); ++i)
+ if (((*i)->GetId() == 16187) || ((*i)->GetId() == 16205) || ((*i)->GetId() == 16206) )
+ damage+=(*i)->GetModifier()->m_amount * damage / 100;
+ }
+ // Glyph Healing Stream Totem
+ if (Unit *owner = m_caster->GetOwner())
+ if (Aura *dummy = owner->GetDummyAura(55456))
+ damage+=dummy->GetModifier()->m_amount * damage / 100;
m_caster->CastCustomSpell(unitTarget, 52042, &damage, 0, 0, true, 0, 0, m_originalCasterGUID);
+ }
return;
}
// Mana Spring Totem