Ejemplo n.º 1
0
 //#----------------------------------------------------------
 //# * 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;
 }
Ejemplo n.º 2
0
 //#----------------------------------------------------------
 //# * 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;
 }