From b95f1a2ff4224e55e436fe344ae7edf1db6de57a Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 26 Mar 2009 11:18:43 -0600 Subject: *Fix broken single spell immune. --HG-- branch : trunk --- src/game/Unit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 *spell_triggered = spellmgr.GetSpellLinked(id + SPELL_LINK_AURA)) for(std::vector::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 *spell_triggered = spellmgr.GetSpellLinked(id + SPELL_LINK_AURA)) for(std::vector::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); } -- cgit v1.2.3