Skip to content

Commit

Permalink
Fix error with tiered rolls that don't start with 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Mar 28, 2024
1 parent ebf62d5 commit 13a9960
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Windows/ServerWindow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,12 @@
actualRolls = actualRolls + 1;
if frame.Roll.Tiered then
local tier = text:match("%(1%-(%d+)%)");
if alreadyRolledTiers[tier] then
info = ChatTypeInfo["RESTRICTED"];
end
alreadyRolledTiers[tier] = true;
if not tier or alreadyRolledTiers[tier] then
info = ChatTypeInfo["RESTRICTED"];
end
if tier then
alreadyRolledTiers[tier] = true;
end
elseif not text:find("%(1%-100%)") then
info = ChatTypeInfo["RESTRICTED"];
elseif actualRolls > expectedRolls then
Expand Down

0 comments on commit 13a9960

Please sign in to comment.