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

--HG--
branch : trunk
This commit is contained in:
megamage committed 2008-11-22 00:31:24 -06:00
1 parent c96f5f9a8f
commit 6a0ad5da50
5 files changed
+7 -6

No files matched your search

+2 -1
View File
@@ -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())