Changeset 72 for trunk/src/game/Totem.cpp
- Timestamp:
- 11/19/08 13:31:37 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Totem.cpp
r44 r72 162 162 m_type = TOTEM_STATUE; //Jewelery statue 163 163 } 164 165 bool Totem::IsImmunedToSpell(SpellEntry const* spellInfo, bool useCharges) 166 { 167 for (int i=0;i<3;i++) 168 { 169 switch(spellInfo->EffectApplyAuraName[i]) 170 { 171 case SPELL_AURA_PERIODIC_DAMAGE: 172 case SPELL_AURA_PERIODIC_LEECH: 173 return true; 174 default: 175 continue; 176 } 177 } 178 return Creature::IsImmunedToSpell(spellInfo, useCharges); 179 }