diff --git a/src/client/graphics/layers/RailroadView.ts b/src/client/graphics/layers/RailroadView.ts index e4802fc94..2f690965d 100644 --- a/src/client/graphics/layers/RailroadView.ts +++ b/src/client/graphics/layers/RailroadView.ts @@ -106,7 +106,6 @@ export function computeDirection( if (dx1 === 1 && dx2 === 0 && dy2 === 1) return RailType.BOTTOM_LEFT; if (dx1 === -1 && dx2 === 0 && dy2 === 1) return RailType.BOTTOM_RIGHT; } - console.warn(`Invalid rail segment: ${dx1}:${dy1}, ${dx2}:${dy2}`); return RailType.VERTICAL; } diff --git a/src/core/execution/NukeExecution.ts b/src/core/execution/NukeExecution.ts index 89d755831..6e3e779f4 100644 --- a/src/core/execution/NukeExecution.ts +++ b/src/core/execution/NukeExecution.ts @@ -229,7 +229,6 @@ export class NukeExecution implements Execution { // make the nuke unactive if it was intercepted if (!this.nuke.isActive()) { - console.log(`Nuke destroyed before reaching target`); this.active = false; return; } diff --git a/src/core/execution/SAMLauncherExecution.ts b/src/core/execution/SAMLauncherExecution.ts index 7d8faefff..21a3e26de 100644 --- a/src/core/execution/SAMLauncherExecution.ts +++ b/src/core/execution/SAMLauncherExecution.ts @@ -304,9 +304,6 @@ export class SAMLauncherExecution implements Execution { let target: Target | null = null; if (mirvWarheadTargets.length === 0) { target = this.targetingSystem.getSingleTarget(ticks); - if (target !== null) { - console.log("Target acquired"); - } } // target is already filtered to exclude nukes targeted by other SAMs diff --git a/src/core/execution/utils/AiAttackBehavior.ts b/src/core/execution/utils/AiAttackBehavior.ts index 738fe6893..4d45b3fe8 100644 --- a/src/core/execution/utils/AiAttackBehavior.ts +++ b/src/core/execution/utils/AiAttackBehavior.ts @@ -379,8 +379,10 @@ export class AiAttackBehavior { } findIncomingAttackPlayer(): Player | null { + let incomingAttacks = this.player + .incomingAttacks() + .filter((attack) => !this.player.isFriendly(attack.attacker())); // Ignore bot attacks if we are not a bot. - let incomingAttacks = this.player.incomingAttacks(); if (this.player.type() !== PlayerType.Bot) { incomingAttacks = incomingAttacks.filter( (attack) => attack.attacker().type() !== PlayerType.Bot,