summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.ts b/rules.ts
index 98b10b9..1939d74 100644
--- a/rules.ts
+++ b/rules.ts
@@ -122,7 +122,7 @@ const fascist_decks = {
export const scenarios = ['Standard'];
-export const roles: Player[] = [ANARCHIST, COMMUNIST, MODERATE];
+export const roles: readonly Player[] = [ANARCHIST, COMMUNIST, MODERATE];
function gen_action(action: string, argument?: number | string) {
if (argument === undefined) {
@@ -443,7 +443,7 @@ function get_next_active(p: StateNode['p']): Player | Player[] | 'None' {
return p.map((faction) => faction_player_map[faction]);
}
if (p === 'all') {
- return roles;
+ return roles.slice();
}
if (p === 'None') {
return 'None';