1 parent 3813480 commit b4fcf48Copy full SHA for b4fcf48
1 file changed
src/core/execution/NationExecution.ts
@@ -411,7 +411,8 @@ export class NationExecution implements Execution {
411
if (
412
this.player === null ||
413
this.attackBehavior === null ||
414
- this.allianceBehavior === null
+ this.allianceBehavior === null ||
415
+ this.nukeBehavior === null
416
) {
417
throw new Error("not initialized");
418
}
@@ -459,9 +460,7 @@ export class NationExecution implements Execution {
459
460
461
462
this.attackBehavior.attackBestTarget(borderingFriends, borderingEnemies);
- this.nukeBehavior?.maybeSendNuke(
463
- this.attackBehavior.findBestNukeTarget(borderingEnemies),
464
- );
+ this.nukeBehavior.maybeSendNuke(this.attackBehavior.findBestNukeTarget());
465
466
467
private sendBoatRandomly(borderingEnemies: Player[] = []) {
0 commit comments