diff options
author | megamage <none@none> | 2009-03-26 11:18:43 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-26 11:18:43 -0600 |
commit | b95f1a2ff4224e55e436fe344ae7edf1db6de57a (patch) | |
tree | 44d8ec6ea58aec5409d25651a5f73a24da38007f | |
parent | 1c2e62d2f4cf828cac5e48e20abd8876c2725c65 (diff) |
*Fix broken single spell immune.
--HG--
branch : trunk
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 4e400c509c8..bff6d50415f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -4286,7 +4286,7 @@ bool Unit::AddAura(Aura *Aur) if(const std::vector<int32> *spell_triggered = spellmgr.GetSpellLinked(id + SPELL_LINK_AURA)) for(std::vector<int32>::const_iterator itr = spell_triggered->begin(); itr != spell_triggered->end(); ++itr) if(*itr < 0) - ApplySpellImmune(id, IMMUNITY_ID, *itr, true); + ApplySpellImmune(id, IMMUNITY_ID, -(*itr), true); else if(Unit* caster = Aur->GetCaster()) caster->AddAura(*itr, this); } @@ -4834,7 +4834,7 @@ void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode) if(const std::vector<int32> *spell_triggered = spellmgr.GetSpellLinked(id + SPELL_LINK_AURA)) for(std::vector<int32>::const_iterator itr = spell_triggered->begin(); itr != spell_triggered->end(); ++itr) if(*itr < 0) - ApplySpellImmune(id, IMMUNITY_ID, *itr, false); + ApplySpellImmune(id, IMMUNITY_ID, -(*itr), false); else RemoveAurasDueToSpell(*itr); } |