diff options
Diffstat (limited to 'src/game/Totem.cpp')
| -rw-r--r-- | src/game/Totem.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game/Totem.cpp b/src/game/Totem.cpp index a891087d4ac..2c776918608 100644 --- a/src/game/Totem.cpp +++ b/src/game/Totem.cpp @@ -161,3 +161,19 @@ void Totem::SetTypeBySummonSpell(SpellEntry const * spellProto) if(spellProto->SpellIconID==2056) m_type = TOTEM_STATUE; //Jewelery statue } + +bool Totem::IsImmunedToSpell(SpellEntry const* spellInfo, bool useCharges) +{ + for (int i=0;i<3;i++) + { + switch(spellInfo->EffectApplyAuraName[i]) + { + case SPELL_AURA_PERIODIC_DAMAGE: + case SPELL_AURA_PERIODIC_LEECH: + return true; + default: + continue; + } + } + return Creature::IsImmunedToSpell(spellInfo, useCharges); +}
\ No newline at end of file |
