diff options
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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) { |