Changeset 155
- Timestamp:
- 11/19/08 13:41:24 (17 years ago)
- Location:
- trunk/src/game
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/SpellMgr.cpp
r149 r155 2038 2038 SpellEntry *tempSpell; 2039 2039 if(tempSpell = (SpellEntry*)GetSpellStore()->LookupEntry(8122)) 2040 tempSpell->Attributes Ex|= SPELL_ATTR_BREAKABLE_BY_DAMAGE;2040 tempSpell->Attributes |= SPELL_ATTR_BREAKABLE_BY_DAMAGE; 2041 2041 if(tempSpell = (SpellEntry*)GetSpellStore()->LookupEntry(8124)) 2042 tempSpell->Attributes Ex|= SPELL_ATTR_BREAKABLE_BY_DAMAGE;2042 tempSpell->Attributes |= SPELL_ATTR_BREAKABLE_BY_DAMAGE; 2043 2043 if(tempSpell = (SpellEntry*)GetSpellStore()->LookupEntry(10888)) 2044 tempSpell->Attributes Ex|= SPELL_ATTR_BREAKABLE_BY_DAMAGE;2044 tempSpell->Attributes |= SPELL_ATTR_BREAKABLE_BY_DAMAGE; 2045 2045 if(tempSpell = (SpellEntry*)GetSpellStore()->LookupEntry(10890)) 2046 tempSpell->Attributes Ex|= SPELL_ATTR_BREAKABLE_BY_DAMAGE;2046 tempSpell->Attributes |= SPELL_ATTR_BREAKABLE_BY_DAMAGE; 2047 2047 } 2048 2048 -
trunk/src/game/Unit.cpp
r151 r155 2803 2803 if (pVictim->GetTypeId()==TYPEID_UNIT && ((Creature*)pVictim)->IsInEvadeMode()) 2804 2804 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; 2805 2809 2806 2810 // Check for immune (use charges)