Skip to content

Commit

Permalink
fix: pirates wont be selected as targets
Browse files Browse the repository at this point in the history
  • Loading branch information
evilfactory committed Aug 10, 2021
1 parent 9dcb58b commit 65c217b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lua/traitorconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local codewords = {

config.codewords = codewords
config.amountCodewords = 2
config.traitorSpawnDelay = 60
config.traitorSpawnDelay = 15
config.nextMissionDelay = 60
config.chooseBotsAsTraitorTargets = false

Expand Down
2 changes: 1 addition & 1 deletion Lua/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ util.GetValidPlayersNoTraitorsSameTeam = function(traitors)
for key, value in pairs(chars) do
if (value.IsHuman == true and value.IsDead == false) and
value.ClientDisconnected == false then
if traitors[value] == nil and value.TeamID == 1 then
if traitors[value] == nil and value.TeamID ~= 0 and botGod ~= value then
table.insert(valid, value)
end
end
Expand Down

0 comments on commit 65c217b

Please sign in to comment.