diff options
author | megamage <none@none> | 2009-01-18 19:01:41 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-18 19:01:41 -0600 |
commit | 40e7dcb599c1e596151356a4cc4d6f641bc1ec05 (patch) | |
tree | 7793b2697c9151f96394f77f1d89375ee092f69a /src/game/Totem.cpp | |
parent | c85c89dc0b0564113e48bfcaf96dc2af55d73bb8 (diff) |
*Update to Mangos 7111.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Totem.cpp')
-rw-r--r-- | src/game/Totem.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/game/Totem.cpp b/src/game/Totem.cpp index 335c8e6df13..7be3ffbd635 100644 --- a/src/game/Totem.cpp +++ b/src/game/Totem.cpp @@ -178,18 +178,18 @@ void Totem::SetTypeBySummonSpell(SpellEntry const * spellProto) m_type = TOTEM_STATUE; //Jewelery statue } -bool Totem::IsImmunedToSpell(SpellEntry const* spellInfo) +bool Totem::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) const { -/* for (int i=0;i<3;i++) + // TODO: possibly all negative auras immuned? + switch(spellInfo->EffectApplyAuraName[index]) { - switch(spellInfo->EffectApplyAuraName[i]) - { - case SPELL_AURA_PERIODIC_DAMAGE: - case SPELL_AURA_PERIODIC_LEECH: - return true; - default: - continue; - } - }*/ - return Creature::IsImmunedToSpell(spellInfo); + case SPELL_AURA_PERIODIC_DAMAGE: + case SPELL_AURA_PERIODIC_LEECH: + case SPELL_AURA_MOD_FEAR: + case SPELL_AURA_TRANSFORM: + return true; + default: + break; + } + return Creature::IsImmunedToSpellEffect(spellInfo, index); } |