feedback3 W3C: room.kick names the confirmed player; a seat that changed hands while the host confirmed is refused (BAD_TARGET)

This commit is contained in:
sganggs committed 2026-10-04 17:38:29 +08:00
1 parent eb3886760e
commit 782f918684
5 files changed
+58 -25

No files matched your search

+3 -2
View File
@@ -245,8 +245,9 @@ export const C2S = {
'room.setDifficulty': { difficulty: (v) => DIFFICULTIES.includes(v) },
'room.addBot': {},
'room.removeBot': { seat: (v) => isInt(v, 0, MAX_SEATS - 1) },
// the host removes another human before the match (server/lobby.js kick; community report #17)
'room.kick': { seat: (v) => isInt(v, 0, MAX_SEATS - 1) },
// the host removes another human before the match (server/lobby.js kick; community report #17); playerId = the one the
// host confirmed — a seat that changed hands meanwhile is refused
'room.kick': { seat: (v) => isInt(v, 0, MAX_SEATS - 1), playerId: isId },
'room.start': {},
// operator loadout (DESIGN §16): stored per session/seat; accepted until the match leaves INFO_CHECK
'room.loadout': { entries: isLoadoutEntries },