diff options
author | thenecromancer <none@none> | 2010-01-13 10:20:00 +0100 |
---|---|---|
committer | thenecromancer <none@none> | 2010-01-13 10:20:00 +0100 |
commit | 8dd67e8bb31ef3740fcff936eb65223072a52729 (patch) | |
tree | fc4b3c57850014f9eeaf10f67c63f71167fcecaa /src/game/Creature.cpp | |
parent | 6b07806d0c034e6b88cf0426c753e620841181a5 (diff) |
Allow state/effect immunities ignore whole spell when one effect is immuned
(Fixes getting part of CC auras with some immunities)
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r-- | src/game/Creature.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 0a74b64d320..384eec4ebdb 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -1598,12 +1598,12 @@ bool Creature::IsImmunedToSpell(SpellEntry const* spellInfo) return Unit::IsImmunedToSpell(spellInfo); } -bool Creature::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) const +bool Creature::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index, bool checkMechanic) const { if (GetCreatureInfo()->MechanicImmuneMask & (1 << (spellInfo->EffectMechanic[index] - 1))) return true; - return Unit::IsImmunedToSpellEffect(spellInfo, index); + return Unit::IsImmunedToSpellEffect(spellInfo, index, checkMechanic); } SpellEntry const *Creature::reachWithSpellAttack(Unit *pVictim) |