Merge branch 'explosivegaming:main' into aperx

This commit is contained in:
2025-01-26 03:42:45 +09:00
committed by GitHub
6 changed files with 51 additions and 17 deletions

View File

@@ -329,7 +329,7 @@ local roles = Roles.get_player_roles(game.player)
]]
function Roles.get_player_roles(player)
if not player then return { Roles.config.roles[Roles.config.internal.root] } end
if not player or player.index == 0 then return { Roles.config.roles[Roles.config.internal.root] } end
local roles = Roles.config.players[player.name] or {}
local default = Roles.config.roles[Roles.config.internal.default]
local rtn = { default }