From cc836cbc0d2f4b2758258dde35b945fbb094aa02 Mon Sep 17 00:00:00 2001 From: evil_morfar <10189576+evil-morfar@users.noreply.github.com> Date: Fri, 20 Sep 2024 03:23:53 +0200 Subject: [PATCH] Attempt to fix busted action fails --- .specs/Integration/VotingFrame/randomRolls.spec.lua | 2 +- Classes/Utils/GroupLoot.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.specs/Integration/VotingFrame/randomRolls.spec.lua b/.specs/Integration/VotingFrame/randomRolls.spec.lua index 56c31b46..1cb5be7f 100644 --- a/.specs/Integration/VotingFrame/randomRolls.spec.lua +++ b/.specs/Integration/VotingFrame/randomRolls.spec.lua @@ -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) diff --git a/Classes/Utils/GroupLoot.lua b/Classes/Utils/GroupLoot.lua index c35895e9..c33fbfed 100644 --- a/Classes/Utils/GroupLoot.lua +++ b/Classes/Utils/GroupLoot.lua @@ -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