mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-26 19:04:36 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user