From 0a266f5ef886db3be7b3bbfd5b319e21e9439e11 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Sat, 19 Oct 2024 11:54:35 -0700 Subject: [PATCH] nukes destroy troops --- src/core/execution/NukeExecution.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/execution/NukeExecution.ts b/src/core/execution/NukeExecution.ts index 5f9463528..281111c9b 100644 --- a/src/core/execution/NukeExecution.ts +++ b/src/core/execution/NukeExecution.ts @@ -38,7 +38,9 @@ export class NukeExecution implements Execution { for (const tile of this.toDestroy) { const owner = tile.owner() if (owner.isPlayer()) { - this.mg.player(owner.id()).relinquish(tile) + const mp = this.mg.player(owner.id()) + mp.relinquish(tile) + mp.removeTroops(mp.troops() / mp.numTilesOwned()) } } this.active = false