Avoiding to struggle - a guide for beginers

the last one for today, is the one to enter in combat. Actually, i put the condition of dread and reds only, because if i put the green ones, … well, the bot dont make the difference betwen a new anomaly and my own anomaly( they are before, to mark my own anomaly and to orbit for the first time, ( good for haven sites because you orbit and wait until the rats are coming) After that they are forgoten by bot.

if (listOverviewDreadCheck.Count() > 0 || (listOverviewEntryEnemy.Count() > 0))
{
yield return new RetreatTask { Bot = bot };
}
else
{
yield return bot?.EnsureIsActive(ab); //ACTIVE AF/MWD
if (combatTab != OverviewTabActive)
and    from here its starts the fight
if ((listOverviewEntryToAttack.Count() > 0)  && (Anchor.Count > 0))
{
if (ShipManeuverStatus != ShipManeuverTypeEnum.Orbit)
{
var Broken = memoryMeasurement?.WindowOverview?.FirstOrDefault()?.ListView?.Entry
?.Where(entry => entry?.Name?.RegexMatchSuccessIgnoreCase("broken|pirate gate") ?? false)
?.OrderBy(entry => entry?.DistanceMax ?? int.MaxValue)
?.ToArray();
var orbitKeyCode = (VirtualKeyCode)'W';

//yield return Broken.FirstOrDefault().ClickMenuEntryByRegexPattern(bot, "Orbit", "30 km");
yield return new BotTask
{
Effects = new[]
{
MotionParamExtension.KeyDown(orbitKeyCode),
										Broken.FirstOrDefault().MouseClick(MouseButtonIdEnum.Left),
MotionParamExtension.KeyUp(orbitKeyCode)
}
};
}

you ask yourself why i put the orbit again? me too, :)) i kidding . Well, an really fast ship can get in and out from you system before your drones, imbricated betwen rocks, other drones wrecks and rats to even start to come to you. So even if Im in fight, the red come and disapear, but Im aligned, my ab is off, my perma is on and … this lines put me again on orbit mode :d ( saveship is disapeared from savetask) and even if the drones get inside your ship in the same time, he will get them out and fight : :wink:
actually, if you ask me like a friend the trickery with anchor is from 3-4 days, before i used only this lines :))