Changeset 288 for trunk/src/game

Show
Ignore:
Timestamp:
11/22/08 06:35:03 (17 years ago)
Author:
yumileroy
Message:

*Add UNIT_FLAG_NOT_ATTACKABLE_2. Not attackable, but can be hit by entry-target spells (I guess).

Original author: megamage
Date: 2008-11-22 00:31:24-06:00

Location:
trunk/src/game
Files:
2 modified

Legend:

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

    r285 r288  
    85568556        return false; 
    85578557 
    8558     if(HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE)) 
     8558    if(HasFlag(UNIT_FIELD_FLAGS,  
     8559        UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NOT_ATTACKABLE_2)) 
    85598560        return false; 
    85608561 
  • trunk/src/game/Unit.h

    r284 r288  
    454454    UNIT_FLAG_UNKNOWN9         = 0x00000040, 
    455455    UNIT_FLAG_NOT_ATTACKABLE_1 = 0x00000080,                // ?? (UNIT_FLAG_PVP_ATTACKABLE | UNIT_FLAG_NOT_ATTACKABLE_1) is NON_PVP_ATTACKABLE 
    456     UNIT_FLAG_UNKNOWN2        = 0x00000100,                // 2.0.8 
     456    UNIT_FLAG_NOT_ATTACKABLE_2 = 0x00000100,                // 2.0.8 
    457457    UNIT_FLAG_UNKNOWN11        = 0x00000200, 
    458458    UNIT_FLAG_LOOTING          = 0x00000400,                // loot animation