//#---------------------------------------------------------- //# * Is Legal Attack Target //#---------------------------------------------------------- public bool IsLegalAttackTarget(Game_Unit target) { if (target == null) return false; if (target.IsDead()) return false; if (target.IsPlayerOwned == _playerSide) return false; return true; }
//#---------------------------------------------------------- //# * Is Legal Attack Target //#---------------------------------------------------------- public bool IsLegalAttackTarget(Game_Unit target) { if (target == null) return false; if (IsPlayer == target.IsPlayerOwned) return false; if (target.IsInMotion()) return false; if (target.IsDead()) return false; return true; }
//#---------------------------------------------------------- //# * Is Legal Attack Target //#---------------------------------------------------------- public bool IsLegalAttackTarget(Game_Unit target) { if (target == null) return false; if (target.IsAlly(this)) return false; if (target.IsInMotion()) return false; if (target.IsDead()) return false; return true; }