Show
Ignore:
Timestamp:
11/19/08 13:31:37 (17 years ago)
Author:
yumileroy
Message:

[svn] * Raise modify scale limit from 3 to 10 for players
* Implement immunity totems from periodic damage spell effects. Source: Mangos
* Implemented second choice aggro targets for creatures. Source: Mangos

Original author: KingPin?
Date: 2008-10-19 16:52:50-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Totem.cpp

    r44 r72  
    162162        m_type = TOTEM_STATUE;                              //Jewelery statue 
    163163} 
     164 
     165bool 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}