Fix: Correct MIRVExecution tile calculation

The x() method was being called twice, passing a number instead of a TileRef. This has been corrected by removing the redundant call.
This commit is contained in:
Restart2008
2025-10-26 16:22:41 -07:00
parent bb87e81f9d
commit 9f1fc12b6b
+1 -1
View File
@@ -70,7 +70,7 @@ export class MirvExecution implements Execution {
}
this.nuke = this.player.buildUnit(UnitType.MIRV, spawn, {});
const x = Math.floor(
(this.mg.x(this.dst) + this.mg.x(this.mg.x(this.nuke.tile()))) / 2,
(this.mg.x(this.dst) + this.mg.x(this.nuke.tile())) / 2,
);
const y = Math.max(0, this.mg.y(this.dst) - 500) + 50;
this.separateDst = this.mg.ref(x, y);