*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:
1 parent
c96f5f9a8f
commit
6a0ad5da50
5 files changed
+7
-6
No files matched your search
+2
-1
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user