mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-06 13:28:41 +00:00
bugfix: nuking yourself makes you a traitor
This commit is contained in:
@@ -5,7 +5,7 @@ export const devConfig = new class extends DefaultConfig {
|
||||
unitInfo(type: UnitType): UnitInfo {
|
||||
const info = super.unitInfo(type)
|
||||
const oldCost = info.cost
|
||||
// info.cost = (p: Player) => oldCost(p) / 100
|
||||
info.cost = (p: Player) => oldCost(p) / 1000
|
||||
return info
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,9 @@ export class NukeExecution implements Execution {
|
||||
const mp = this.mg.player(owner.id())
|
||||
mp.relinquish(tile)
|
||||
mp.removeTroops(ratio[mp.id()])
|
||||
others.add(mp)
|
||||
if (owner != this.player) {
|
||||
others.add(mp)
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const other of others) {
|
||||
|
||||
Reference in New Issue
Block a user