Changeset 248 for trunk/src/game

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

*Do not let CC spells interrupt themselves.

Original author: megamage
Date: 2008-11-16 17:42:29-06:00

Location:
trunk/src/game
Files:
2 modified

Legend:

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

    r239 r248  
    997997 
    998998            unit->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_HITBYSPELL); 
     999            //TODO: find a better way to judge CC auras 
     1000            if(m_spellInfo->Attributes & SPELL_ATTR_BREAKABLE_BY_DAMAGE) 
     1001                unit->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_CC); 
    9991002        } 
    10001003        else 
  • trunk/src/game/Unit.cpp

    r239 r248  
    37833783        { 
    37843784            m_ccAuras.push_back(Aur); 
    3785             RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_CC); 
    37863785        } 
    37873786    }