A-Bot (small adjustments to the codes) [HELP]

friends detection in original A-Bot was not working as there was some redundant codes…

I’ve done my code as follows

					if (bot?.OwnAnomaly != true)			// is it ours?
					{
						if ((listOverviewEntryFriends.Count() == 0) && (listOverviewAvoidAnomalys.Count() == 0) && (listOverviewOrbitPoints.Count() > 0))
						{
							bot?.SetOwnAnomaly(true);
							bot?.SetSkipAnomaly(false);
						}
						else
						{
							if (null == scanActualAnomaly && bot?.SkipAnomaly != true)
							{
								yield return new ReloadAnomalies();
							}
							else if (null != scanActualAnomaly && bot?.SkipAnomaly != true)
							{
								yield return new SkipAnomaly { bot = bot };
								bot?.SetSkipAnomaly(true);
							}
							else if (null != scanActualAnomaly && bot?.SkipAnomaly == true)
							{
								yield return new SkipAnomaly { bot = bot };
								bot?.SetSkipAnomaly(true);
							}
							else if (null == scanActualAnomaly && bot?.SkipAnomaly == true)
							{
								yield return new AnomalyEnter { bot = bot };
							}
						}
					}