mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[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:
parent
8027498c0f
commit
bc160bd04f
2 changed files with 17 additions and 2 deletions
|
|
@ -1918,7 +1918,22 @@ void Spell::EffectDummy(uint32 i)
|
||||||
if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000002000))
|
if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000002000))
|
||||||
{
|
{
|
||||||
if (unitTarget)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
// Mana Spring Totem
|
// Mana Spring Totem
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9297"
|
#define REVISION_NR "9298"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue