public override List <Point> GetValidTargets(List <Point> board, Point position) { Point neoSatanPosition = this.Unit.GetPosition(); base.GetValidTargets(board, position); this.ValidPositions = this.ValidPositions.Where(p => p.x >= (neoSatanPosition.x - 1) && p.x <= (neoSatanPosition.x + 1) || p.z >= (neoSatanPosition.z - 1) && p.z <= (neoSatanPosition.z + 1)).ToList(); strongestTarget = AIUtils.GetStrongestTarget(this.UnitsMap); targets = this.GetRowsToAttack(strongestTarget); Logcat.I(this, $"NeoSatanHeadPukeAction target {strongestTarget}"); return(targets); }
protected virtual Point GetTarget() { return(AIUtils.GetStrongestTarget(this.Unit.UnitsMap)); }