Changeset 155 for trunk

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

[svn] Fix SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY spells, patch provided by QAston.
Fix priest's fear. Is breakable now.

Original author: megamage
Date: 2008-11-03 13:43:36-06:00

Location:
trunk/src/game
Files:
2 modified

Legend:

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

    r149 r155  
    20382038    SpellEntry *tempSpell; 
    20392039    if(tempSpell = (SpellEntry*)GetSpellStore()->LookupEntry(8122)) 
    2040         tempSpell->AttributesEx |= SPELL_ATTR_BREAKABLE_BY_DAMAGE; 
     2040        tempSpell->Attributes |= SPELL_ATTR_BREAKABLE_BY_DAMAGE; 
    20412041    if(tempSpell = (SpellEntry*)GetSpellStore()->LookupEntry(8124)) 
    2042         tempSpell->AttributesEx |= SPELL_ATTR_BREAKABLE_BY_DAMAGE; 
     2042        tempSpell->Attributes |= SPELL_ATTR_BREAKABLE_BY_DAMAGE; 
    20432043    if(tempSpell = (SpellEntry*)GetSpellStore()->LookupEntry(10888)) 
    2044         tempSpell->AttributesEx |= SPELL_ATTR_BREAKABLE_BY_DAMAGE; 
     2044        tempSpell->Attributes |= SPELL_ATTR_BREAKABLE_BY_DAMAGE; 
    20452045    if(tempSpell = (SpellEntry*)GetSpellStore()->LookupEntry(10890)) 
    2046         tempSpell->AttributesEx |= SPELL_ATTR_BREAKABLE_BY_DAMAGE; 
     2046        tempSpell->Attributes |= SPELL_ATTR_BREAKABLE_BY_DAMAGE; 
    20472047} 
    20482048 
  • trunk/src/game/Unit.cpp

    r151 r155  
    28032803    if (pVictim->GetTypeId()==TYPEID_UNIT && ((Creature*)pVictim)->IsInEvadeMode()) 
    28042804        return SPELL_MISS_EVADE; 
     2805 
     2806    // If Spel has this flag cannot be resisted/immuned/etc 
     2807    if (spell->Attributes & SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY) 
     2808        return SPELL_MISS_NONE; 
    28052809 
    28062810    // Check for immune (use charges)