[9298] Implement affect glyph 41533, talent 16187 and ranks to 5394 and ranks healing.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
[D4RK]Doom-Lord 2010-02-04 02:26:50 +03:00 committed by VladimirMangos
parent 8027498c0f
commit bc160bd04f
2 changed files with 17 additions and 2 deletions

View file

@ -1918,7 +1918,22 @@ void Spell::EffectDummy(uint32 i)
if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000002000))
{
if (unitTarget)
m_caster->CastCustomSpell(unitTarget, 52042, &damage, 0, 0, true, 0, 0, m_originalCasterGUID);
{
if (Unit *owner = m_caster->GetOwner())
{
// Restorative Totems
Unit::AuraList const& mDummyAuras = owner->GetAurasByType(SPELL_AURA_DUMMY);
for(Unit::AuraList::const_iterator i = mDummyAuras.begin(); i != mDummyAuras.end(); ++i)
// only its have dummy with specific icon
if ((*i)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_SHAMAN && (*i)->GetSpellProto()->SpellIconID == 338)
damage += (*i)->GetModifier()->m_amount * damage / 100;
// Glyph of Healing Stream Totem
if (Aura *dummy = owner->GetDummyAura(55456))
damage += dummy->GetModifier()->m_amount * damage / 100;
}
m_caster->CastCustomSpell(unitTarget, 52042, &damage, NULL, NULL, true, 0, 0, m_originalCasterGUID);
}
return;
}
// Mana Spring Totem