From 45ff069d2cdd3ac45a44e002ced709c457026bf5 Mon Sep 17 00:00:00 2001 From: Evan Date: Fri, 22 Nov 2024 12:19:53 -0800 Subject: [PATCH] fix nukeexecution building atom bomb when hydrogen bomb selected --- src/core/execution/NukeExecution.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/execution/NukeExecution.ts b/src/core/execution/NukeExecution.ts index d94bb0ae5..f65374e90 100644 --- a/src/core/execution/NukeExecution.ts +++ b/src/core/execution/NukeExecution.ts @@ -31,13 +31,13 @@ export class NukeExecution implements Execution { tick(ticks: number): void { if (this.nuke == null) { - const spawn = this.player.canBuild(UnitType.AtomBomb, this.dst) + const spawn = this.player.canBuild(this.type, this.dst) if (spawn == false) { console.warn(`cannot build Nuke`) this.active = false return } - this.nuke = this.player.buildUnit(UnitType.AtomBomb, 0, spawn) + this.nuke = this.player.buildUnit(this.type, 0, spawn) } for (let i = 0; i < 4; i++) {