diff options
| author | megamage <none@none> | 2008-12-03 19:42:06 -0600 | 
|---|---|---|
| committer | megamage <none@none> | 2008-12-03 19:42:06 -0600 | 
| commit | 2d1905c887ba9eaa139dd450a484ed53868ec627 (patch) | |
| tree | bde7275952c11db6e2fa69e0b302b5dce0b65386 /src/game/Unit.cpp | |
| parent | 48ca955bd36d33ea12cfd24a61730a6ae61ffc86 (diff) | |
*Add new immune type: IMMUNITY_ID. This is usually done using dummy auras.
*Let cloak of shadows immunes to flare.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 771d6b30ae3..d43527d0f0b 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -9407,6 +9407,15 @@ bool Unit::IsImmunedToSpell(SpellEntry const* spellInfo, bool useCharges)          }      } +    SpellImmuneList const& idList = m_spellImmune[IMMUNITY_ID]; +    for(SpellImmuneList::const_iterator itr = idList.begin(); itr != idList.end(); ++itr) +    { +        if(itr->type == spellInfo->Id) +        { +            return true; +        } +    } +      return false;  }  | 
