diff options
author | megamage <none@none> | 2008-11-22 00:31:24 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-22 00:31:24 -0600 |
commit | 6a0ad5da5088c2e4a88687fc523cc581e62effbc (patch) | |
tree | e57c99d82621bef09925ee77727a20c0c3212c92 /src/game/Unit.cpp | |
parent | c96f5f9a8fdce84a298f8419025b235a40cc09b2 (diff) |
*Add UNIT_FLAG_NOT_ATTACKABLE_2. Not attackable, but can be hit by entry-target spells (I guess).
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index cd88d938693..e4a83c88093 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8555,7 +8555,8 @@ bool Unit::isAttackableByAOE() const if(!isAlive()) return false; - if(HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE)) + if(HasFlag(UNIT_FIELD_FLAGS, + UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NOT_ATTACKABLE_2)) return false; if(GetTypeId()==TYPEID_PLAYER && ((Player *)this)->isGameMaster()) |