This commit is contained in:
Scott Anderson
2025-04-03 01:23:42 -04:00
parent b27ac3ae87
commit 6ee58f4191
+2 -5
View File
@@ -298,8 +298,7 @@ export class FakeHumanExecution implements Execution {
const silos = this.player.units(UnitType.MissileSilo);
if (
silos.length == 0 ||
this.player.gold() <
this.mg.config().unitInfo(UnitType.AtomBomb).cost(this.player) ||
this.player.gold() < this.cost(UnitType.AtomBomb) ||
this.player.isOnSameTeam(other)
) {
return;
@@ -462,9 +461,7 @@ export class FakeHumanExecution implements Execution {
if (units.length >= maxNum) {
return;
}
if (
this.player.gold() < this.mg.config().unitInfo(type).cost(this.player)
) {
if (this.player.gold() < this.cost(type)) {
return;
}
const tile = this.randTerritoryTile(this.player);