Skip to content

Commit

Permalink
fix: ignore annoying one-off data in DRList spell data where one spel…
Browse files Browse the repository at this point in the history
…l has two DR categories listed
  • Loading branch information
ascott18 committed Jul 27, 2024
1 parent 4846a74 commit 40e4e6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## v11.0.3
* Fix activation overlays in Classic
* Fix the Tracking ACtive condition (again)

## v11.0.2
* Support Masque round spell activation overlays.
Expand Down
18 changes: 10 additions & 8 deletions Components/IconTypes/IconType_dr/dr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,16 @@ TMW:RegisterCallback("TMW_EQUIVS_PROCESSING", function()
end
end

local k = myCategories[category]

if k then
usedCategories[category] = true
dr[k] = dr[k] or {}
tinsert(dr[k], spellID)
elseif TMW.debug and not ignored[category] then
TMW:Error("The DR category %q is undefined!", category)
if category then
local k = myCategories[category]

if k then
usedCategories[category] = true
dr[k] = dr[k] or {}
tinsert(dr[k], spellID)
elseif TMW.debug and not ignored[category] then
TMW:Error("The DR category %q is undefined!", category)
end
end
end

Expand Down

0 comments on commit 40e4e6e

Please sign in to comment.