Skip to content

Commit

Permalink
Attempt to fix busted action fails
Browse files Browse the repository at this point in the history
  • Loading branch information
evil-morfar committed Sep 20, 2024
1 parent 7b99a1e commit cc836cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .specs/Integration/VotingFrame/randomRolls.spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ describe("#VotingFrame #RandomRolls", function()
local sub = Comms:Subscribe(addon.PREFIXES.MAIN, "srolls", recieverFunc)

VotingFrame:DoAllRandomRolls()
WoWAPI_FireUpdate(GetTime() + 20)
_ADVANCE_TIME(2)

assert.spy(generateNoRepeatRollTable).was.called_with(match.is_ref(VotingFrame), 20)
assert.spy(doAllRandomRolls).was.called(1)
Expand Down
6 changes: 3 additions & 3 deletions Classes/Utils/GroupLoot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,14 @@ function GroupLoot:StatusToDescription(status, target)
local statusBit = tonumber(reversedBinary:sub(i, i))
if i == 7 then -- autoGroupLootGuildGroupOnly doesn't matter; but color green if enabled
if bit.band(status, bit.lshift(1, i - 1)) > 0 then
res[#res + 1] = WrapTextInColorCode(description[i][statusBit], "FF00FF00")
res[#res + 1] = WrapTextInColorCode(description[i][statusBit] or "", "FF00FF00")
else
res[#res + 1] = description[i][statusBit]
end
elseif bit.band(status, bit.lshift(1, i - 1)) == bit.band(target, bit.lshift(1, i - 1)) then
res[#res + 1] = WrapTextInColorCode(description[i][statusBit], "FF00FF00")
res[#res + 1] = WrapTextInColorCode(description[i][statusBit] or "", "FF00FF00")
else
res[#res + 1] = WrapTextInColorCode(description[i][statusBit], "FFFF0000")
res[#res + 1] = WrapTextInColorCode(description[i][statusBit] or "", "FFFF0000")
end
end
return res
Expand Down

0 comments on commit cc836cb

Please sign in to comment.