summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/rules.ts b/rules.ts
index c88b8d7..36efee3 100644
--- a/rules.ts
+++ b/rules.ts
@@ -2928,14 +2928,12 @@ function resolve_final_bid() {
function get_fronts_to_add_to(
target: string | number,
- not: FrontId[] = []
+ not?: FrontId
): FrontId[] {
if (target === CLOSEST_TO_DEFEAT || target === CLOSEST_TO_VICTORY) {
return get_fronts_closest_to(target);
} else if (target === ANY) {
- return FRONTS.filter(
- (id) => game.fronts[id].status === null && !not.includes(id)
- );
+ return FRONTS.filter((id) => game.fronts[id].status === null && id !== not);
} else if (game.fronts[target].status === DEFEAT) {
return get_fronts_closest_to(CLOSEST_TO_DEFEAT);
} else if (game.fronts[target].status === VICTORY) {