diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2355,12 +2355,12 @@ function resolve_final_bid() { } resolve_active_and_proceed(); } -function get_fronts_to_add_to(target, not = []) { +function get_fronts_to_add_to(target, not) { if (target === data_1.CLOSEST_TO_DEFEAT || target === data_1.CLOSEST_TO_VICTORY) { return get_fronts_closest_to(target); } else if (target === data_1.ANY) { - return data_1.FRONTS.filter((id) => game.fronts[id].status === null && !not.includes(id)); + return data_1.FRONTS.filter((id) => game.fronts[id].status === null && id !== not); } else if (game.fronts[target].status === data_1.DEFEAT) { return get_fronts_closest_to(data_1.CLOSEST_TO_DEFEAT); |