Skip to content

Commit c378d86

Browse files
committed
Merge branch 'develop'
2 parents 5b48287 + a37ba9c commit c378d86

File tree

19 files changed

+348
-535
lines changed

19 files changed

+348
-535
lines changed

.specs/Integration/VotingFrame/ReannounceOrRequestRoll.spec.lua

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,13 @@ describe("#VotingFrame #ReannounceOrRequestRoll", function()
160160

161161
assert.spy(receivedSpy).was.called(1)
162162
-- Now rolls should be reset:
163-
for ses, data in ipairs(VotingFrame:GetLootTable()) do
164-
for name, v in pairs(data.candidates) do
165-
if name == addon.player.name then -- We might have timedout our roll
166-
if v.response == "TIMEOUT" then
167-
assert.equal("-", v.roll)
168-
end
169-
else
170-
assert.Nil(v.roll)
163+
for name, v in pairs(VotingFrame:GetLootTable()[1].candidates) do
164+
if name == addon.player.name then -- We might have timedout our roll
165+
if v.response == "TIMEOUT" then
166+
assert.equal("?", v.roll)
171167
end
168+
else
169+
assert.Nil(v.roll)
172170
end
173171
end
174172
end)

.vscode/settings.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -197,19 +197,9 @@
197197
"${addons}/lldebugger/module/library",
198198
"${addons}/luafilesystem/module/library",
199199
"${addons}/luassert/module/library",
200-
"~\\.vscode\\extensions\\ketho.wow-api-0.21.0\\Annotations\\Core",
201-
"~\\.vscode\\extensions\\ketho.wow-api-0.21.0\\Annotations\\FrameXML"
200+
"~\\.vscode\\extensions\\ketho.wow-api-0.22.1\\Annotations\\Core",
201+
"~\\.vscode\\extensions\\ketho.wow-api-0.22.1\\Annotations\\FrameXML"
202202
],
203203
"Lua.type.weakUnionCheck": true,
204-
"Lua.runtime.builtin": {
205-
"basic": "disable",
206-
"debug": "disable",
207-
"io": "disable",
208-
"math": "disable",
209-
"os": "disable",
210-
"package": "disable",
211-
"string": "disable",
212-
"table": "disable",
213-
"utf8": "disable"
214-
},
204+
215205
}

Classes/Data/Player.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ end
189189

190190
function private:IsCached(guid)
191191
if not guid then return false end
192+
if addon.Utils:IsSecretValue(guid) then return false end
192193
if not self.cache[guid] then return false end
193194
if self.cache[guid].isCouncil then return true end -- Never expire council members
194195
if not self.cache[guid].cache_time or self.cache[guid].cache_time + MAX_CACHE_TIME < GetServerTime() then

Classes/Services/Comms.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ end
233233
function private:OnRestrictionsChanged(active)
234234
if active then return end
235235
local len = #self.queuedComms
236+
if len == 0 then return end
236237
for _, encoded in ipairs(self.queuedComms) do
237238
local prefix, target, command, data = strsplit("|", encoded, 4)
238239
self:SendComm(prefix, target, nil, nil, nil, command, true, data)

Classes/Services/CommsRestrictions.lua

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ end
1616
local AddOnRestrictionTypeReverse = tInvert(Enum.AddOnRestrictionType)
1717
local AddOnRestrictionStateReverse = tInvert(Enum.AddOnRestrictionState)
1818
function CommsRestrictions:ChangeEvent(_, type, state)
19-
-- TODO: Currently checked: Combat, Encounter, ChallengeMode
20-
-- Combat seems to be the exception
19+
-- Combat seems to be the exception. Not sure about map - comms still work when it's enabled in instances.
2120
self.restrictionsEnabled =
2221
(state == Enum.AddOnRestrictionState.Active or state == Enum.AddOnRestrictionState.Activating) and
23-
(type ~= Enum.AddOnRestrictionType.Combat)
22+
(type ~= Enum.AddOnRestrictionType.Combat and type ~= Enum.AddOnRestrictionType.Map)
2423
addon.Log:d("Restriction:", AddOnRestrictionTypeReverse[type], AddOnRestrictionStateReverse[state], type, state,
2524
self.restrictionsEnabled)
2625
self.OnAddonRestrictionChanged(self.restrictionsEnabled)
@@ -29,3 +28,12 @@ end
2928
function CommsRestrictions:IsRestricted()
3029
return self.restrictionsEnabled
3130
end
31+
32+
function CommsRestrictions:DumpRestrictions()
33+
addon.Log:D("Current Addon Restrictions:")
34+
for type = 0, #AddOnRestrictionTypeReverse do
35+
local state = C_RestrictedActions.IsAddOnRestrictionActive(type)
36+
addon.Log:D(" - ", AddOnRestrictionTypeReverse[type], state)
37+
end
38+
addon.Log:D("Secrets:", C_Secrets.HasSecretRestrictions())
39+
end

Core/Constants.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ addon.RESPONSE_CODE_GENERATORS = {
186186
if db.enabledButtons.SPECIAL and C_Item.IsEquippableItem(item) then
187187
-- Scan tooltip
188188
local info = C_TooltipInfo.GetHyperlink(item)
189+
if not info then
190+
-- TODO: Find a solution for this
191+
addon.Log:E("No tooltip info found for item", itemID)
192+
return
193+
end
189194
if not info.type == Enum.TooltipDataType.Item then
190195
addon.Log:W("ItemTooltip was not of type item", itemID, info.type)
191196
return

Libs/AceTab-3.0/AceTab-3.0.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
-- Note: This library is not yet finalized.
33
-- @class file
44
-- @name AceTab-3.0
5-
-- @release $Id: AceTab-3.0.lua 1287 2022-09-25 09:15:57Z nevcairiel $
5+
-- @release $Id: AceTab-3.0.lua 1388 2026-01-22 23:05:57Z funkehdude $
66

7-
local ACETAB_MAJOR, ACETAB_MINOR = 'AceTab-3.0', 9
7+
local ACETAB_MAJOR, ACETAB_MINOR = 'AceTab-3.0', 10
88
local AceTab, oldminor = LibStub:NewLibrary(ACETAB_MAJOR, ACETAB_MINOR)
99

1010
if not AceTab then return end -- No upgrade needed
@@ -23,6 +23,7 @@ local strsub = string.sub
2323
local strlower = string.lower
2424
local strformat = string.format
2525
local strmatch = string.match
26+
local NUM_CHAT_WINDOWS = NUM_CHAT_WINDOWS or Constants.ChatFrameConstants.MaxChatWindows
2627

2728
local function printf(...)
2829
DEFAULT_CHAT_FRAME:AddMessage(strformat(...))

0 commit comments

Comments
 (0)