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

[svn] Fix cloak of shadows. Dispel type should be based on SPELL_DAMAGE_CLASS_MAGIC.
Fix: SPELL_DAMAGE_CLASS_NONE type spells should never miss.

Original author: megamage
Date: 2008-10-21 17:10:05-05:00

Files:
1 modified

Legend:

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

    r79 r93  
    17741774                if( // ignore positive and passive auras 
    17751775                    !iter->second->IsPositive() && !iter->second->IsPassive()    && 
    1776                     // ignore physical auras 
    1777                     (GetSpellSchoolMask(iter->second->GetSpellProto()) & SPELL_SCHOOL_MASK_NORMAL)==0 && 
     1776                    // only affect magic spells 
     1777                    iter->second->GetSpellProto()->DmgClass == SPELL_DAMAGE_CLASS_MAGIC && 
    17781778                    // ignore immunity persistent spells 
    17791779                    !( iter->second->GetSpellProto()->AttributesEx & 0x10000 ) )