diff options
| author | Iskander <none@none> | 2009-06-20 21:53:59 +0200 |
|---|---|---|
| committer | Iskander <none@none> | 2009-06-20 21:53:59 +0200 |
| commit | a8d305c8c235c8c597cd5ffd051e5f829d850f30 (patch) | |
| tree | 69957759180af24bc15381483bcef9a7911fae91 /src/game/SpellAuras.cpp | |
| parent | 1dd1f6db344c403fb6b90d6dff9b19cee73ffc0b (diff) | |
* fix of Spiritual Attunement
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
| -rw-r--r-- | src/game/SpellAuras.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 937833eab7d..5e8241b486a 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -1140,6 +1140,20 @@ void Aura::HandleAddModifier(bool apply, bool Real) if(apply) m_target->CastSpell(m_target,45471,true); } + + if(spellInfo->SpellFamilyName==SPELLFAMILY_PALADIN && (spellFamilyMask & 0x0000100000000000LL)) // Spiritual Attunement + { + if(m_target->HasAura(31785,0)) // rank 1 + { + m_target->RemoveAurasDueToSpell(31785); + m_target->CastSpell(m_target,31785,true); + } + if(m_target->HasAura(33776,0)) // rank 2 + { + m_target->RemoveAurasDueToSpell(33776); + m_target->CastSpell(m_target,33776,true); + } + } } void Aura::TriggerSpell() |
