Skip to content

Commit b4fcf48

Browse files
committed
Fix coderabbit
1 parent 3813480 commit b4fcf48

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/core/execution/NationExecution.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ export class NationExecution implements Execution {
411411
if (
412412
this.player === null ||
413413
this.attackBehavior === null ||
414-
this.allianceBehavior === null
414+
this.allianceBehavior === null ||
415+
this.nukeBehavior === null
415416
) {
416417
throw new Error("not initialized");
417418
}
@@ -459,9 +460,7 @@ export class NationExecution implements Execution {
459460
}
460461

461462
this.attackBehavior.attackBestTarget(borderingFriends, borderingEnemies);
462-
this.nukeBehavior?.maybeSendNuke(
463-
this.attackBehavior.findBestNukeTarget(borderingEnemies),
464-
);
463+
this.nukeBehavior.maybeSendNuke(this.attackBehavior.findBestNukeTarget());
465464
}
466465

467466
private sendBoatRandomly(borderingEnemies: Player[] = []) {

0 commit comments

Comments
 (0)