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/Totem.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/Totem.cpp')
-rw-r--r-- | src/game/Totem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Totem.cpp b/src/game/Totem.cpp index 282dc7678cb..a6e30ca09ae 100644 --- a/src/game/Totem.cpp +++ b/src/game/Totem.cpp @@ -145,7 +145,7 @@ void Totem::UnSummon() AddObjectToRemoveList(); } -bool Totem::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) const +bool Totem::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index, bool checkMechanic) const { // TODO: possibly all negative auras immune? if(GetEntry() == 5925) @@ -160,5 +160,5 @@ bool Totem::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) co default: break; } - return Creature::IsImmunedToSpellEffect(spellInfo, index); + return Creature::IsImmunedToSpellEffect(spellInfo, index, checkMechanic); } |