From da580eaebd410492e89b260e8390906096f3ef56 Mon Sep 17 00:00:00 2001 From: Evan Date: Thu, 10 Apr 2025 14:28:51 -0700 Subject: [PATCH] sam has 100% chance to hit atom bomb --- src/core/execution/SAMLauncherExecution.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/execution/SAMLauncherExecution.ts b/src/core/execution/SAMLauncherExecution.ts index b7c41f524..e3337f8fd 100644 --- a/src/core/execution/SAMLauncherExecution.ts +++ b/src/core/execution/SAMLauncherExecution.ts @@ -105,7 +105,10 @@ export class SAMLauncherExecution implements Execution { if (this.target && !this.sam.isCooldown() && !this.target.targetedBySAM()) { this.sam.setCooldown(true); const random = this.pseudoRandom.next(); - const hit = random < this.mg.config().samHittingChance(); + let hit = true; + if (this.target.type() != UnitType.AtomBomb) { + hit = random < this.mg.config().samHittingChance(); + } if (!hit) { this.mg.displayMessage( `Missile failed to intercept ${this.target.type()}`,