diff --git a/gamemodes/terrortown/gamemode/shared/sh_equip_items.lua b/gamemodes/terrortown/gamemode/shared/sh_equip_items.lua index fc60669df..b23e32522 100644 --- a/gamemodes/terrortown/gamemode/shared/sh_equip_items.lua +++ b/gamemodes/terrortown/gamemode/shared/sh_equip_items.lua @@ -568,6 +568,8 @@ if SERVER then RANDOMSHOP[ply] = RANDOMTEAMSHOPS[GetShopFallback(srd.index)] end else -- every player has his own shop + local activePlys = util.GetActivePlayers() + for i = 1, #tmpTbl do local ply = tmpTbl[i] local srd = ply:GetSubRoleData() @@ -592,6 +594,12 @@ if SERVER then continue end + if equip.minPlayers and equip.minPlayers > 1 then + if #activePlys < equip.minPlayers then + continue + end + end + if equip.NoRandom then amount = amount - 1