sam do not target twice same nuke (#270)

This commit is contained in:
Ilan Schemoul
2025-03-21 10:17:33 -07:00
committed by GitHub
parent d4ddffe1eb
commit 68621f326a
11 changed files with 200 additions and 33 deletions
+5 -1
View File
@@ -1,3 +1,7 @@
import { DefaultConfig } from "../../src/core/configuration/DefaultConfig";
export class TestConfig extends DefaultConfig {}
export class TestConfig extends DefaultConfig {
samHittingChance(): number {
return 1;
}
}
+5 -2
View File
@@ -15,9 +15,12 @@ export function constructionExecution(
unit: UnitType,
) {
game.addExecution(new ConstructionExecution(playerID, game.ref(x, y), unit));
// Init
// Init exec
game.executeNextTick();
// Exec
// Exec construction execution
game.executeNextTick();
// Add the execution related to the building
game.executeNextTick();
// First tick of the execution of the constructed structure/unit
game.executeNextTick();
}