nukes destroy troops

This commit is contained in:
evanpelle
2024-10-19 11:54:35 -07:00
parent a81dbda071
commit 0a266f5ef8
+3 -1
View File
@@ -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