public bool CheckCanAttack(MapUnit other) { if (other.IsFlying && !Unit.IsFlying && GetAttackRange() <= 1) { return(false); } if (!Unit.CanDetectUnit(other)) { return(false); } return(true); }