Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- Fixed detective hats not hiding when the owning player was eaten by the Cannibal
- Fixed Loot Goblin not being able to drop some weapons that were droppable
- Fixed errors in shop with weapons that don't use the TTT base weapon (like the holdable cat)
- Fixed role selection predicates being ignored by the role pack selection logic
- Ported "Add check for checking weapon GetHeadshotMultiplier"

### Developer
Expand Down
2 changes: 1 addition & 1 deletion gamemodes/terrortown/gamemode/rolepacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,8 @@ function ROLEPACKS.AssignRoles(choices)
end

if not allowDuplicates and TableHasValue(chosenRoles, role) then continue end

if blockedRoles[role] then continue end
if ROLE_SELECTION_PREDICATE[role] and not ROLE_SELECTION_PREDICATE[role]() then continue end

for _ = 1, roleslot.weight do
TableInsert(possibleRoles, role)
Expand Down
Loading