public override Targetable MoveTarget() { if (_harvest.IsFull) { return(CastleHelper.GetCastle(Allegiance)); } return(TargetingFunction.GetClosestTarget(this, CastleHelper.GetCastle(Allegiance), TargetingFunction.IsCorpse, DetectionRange * DetectionRange)); }
public virtual Targetable MoveTarget() { return(TargetingFunction.GetClosestTarget(this, CastleHelper.GetCastle(!Allegiance), (Targetable Targetable) => TargetingFunction.IsEnemy(this, Targetable), DetectionRange * DetectionRange)); }