Changeset 226 for trunk/src/game/Unit.h

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

[svn] Some update on channeled spells.

Original author: megamage
Date: 2008-11-14 14:19:23-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Unit.h

    r215 r226  
    4040enum SpellInterruptFlags 
    4141{ 
    42     SPELL_INTERRUPT_FLAG_MOVEMENT     = 0x01, 
    43     SPELL_INTERRUPT_FLAG_DAMAGE       = 0x02, 
    44     SPELL_INTERRUPT_FLAG_INTERRUPT    = 0x04, 
    45     SPELL_INTERRUPT_FLAG_AUTOATTACK   = 0x08, 
    46     //SPELL_INTERRUPT_FLAG_TURNING      = 0x10              // not turning - maybe _complete_ interrupt on direct damage? 
     42    SPELL_INTERRUPT_FLAG_MOVEMENT     = 0x01, // why need this for instant? 
     43    SPELL_INTERRUPT_FLAG_PUSH_BACK    = 0x02, // push back 
     44    SPELL_INTERRUPT_FLAG_INTERRUPT    = 0x04, // interrupt 
     45    SPELL_INTERRUPT_FLAG_AUTOATTACK   = 0x08, // no 
     46    SPELL_INTERRUPT_FLAG_DAMAGE       = 0x10  // _complete_ interrupt on direct damage? 
    4747}; 
    4848 
     
    11891189 
    11901190        Aura* GetDummyAura(uint32 spell_id) const; 
     1191        uint32 GetInterruptMask() const { return m_interruptMask; } 
     1192        void AddInterruptMask(uint32 mask) { m_interruptMask |= mask; } 
     1193        void UpdateInterruptMask(); 
    11911194 
    11921195        uint32 GetDisplayId() { return GetUInt32Value(UNIT_FIELD_DISPLAYID); } 
     
    13351338 
    13361339        AuraList m_modAuras[TOTAL_AURAS]; 
     1340        uint32 m_interruptMask; 
    13371341        AuraList m_interruptableAuras; 
    13381342        AuraList m_ccAuras;