fix: skribbl pre-pick label + gartic min 3 players + tests
This commit is contained in:
@@ -344,6 +344,9 @@ function registerHandlers(io) {
|
||||
if (room.players.filter((p) => p.connected).length < 2 && room.mode !== "color") {
|
||||
return ack && ack({ ok: false, error: "need 2+ players" });
|
||||
}
|
||||
if (room.mode === "gartic" && room.players.filter((p) => p.connected).length < 3) {
|
||||
return ack && ack({ ok: false, error: "Gartic Phone needs at least 3 players" });
|
||||
}
|
||||
room.phase = "playing";
|
||||
if (room.mode === "skribbl") {
|
||||
G.skribblInit(room);
|
||||
|
||||
Reference in New Issue
Block a user