Skip to content

Commit

Permalink
fix: #2198 fix nil returns from FindBaseSpellByID
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Aug 19, 2024
1 parent 5ec41a8 commit d2612df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## v11.0.5
* Most cooldown icons with Range Check enabled now utilize more performant event-driven updates in WoW 11.0.
* Spell Cooldown and Reactive Ability icons are vastly more efficient if the tracked ability is on your action bars (macros excluded).
* This is done by utilizing new WoW 11.0 APIs that are specific to abilities present on action bars.

## v11.0.4
* Fix: #2186 Activation overlays in Retail
Expand Down
4 changes: 3 additions & 1 deletion Components/Core/Common/Actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ local function UpdateActionSlots()
-- but I can just imagine people with weird @focus macros
-- wondering why their icon doesn't update sometimes.

local baseId = FindBaseSpellByID(id);
-- https://github.com/ascott18/TellMeWhen/issues/2198
-- Sometimes, FindBaseSpellByID can return `nil`. Fall back to `id` if it does.
local baseId = FindBaseSpellByID(id) or id;

local normalName = strlowerCache[(GetSpellName(id))]
local baseName = strlowerCache[(GetSpellName(baseId))]
Expand Down
3 changes: 2 additions & 1 deletion Options/CHANGELOG.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ TMW.CHANGELOG_LASTVER="10.0.0"

TMW.CHANGELOG = [==[
## v11.0.5
* Most cooldown icons with Range Check enabled now utilize more performant event-driven updates in WoW 11.0.
* Spell Cooldown and Reactive Ability icons are vastly more efficient if the tracked ability is on your action bars (macros excluded).
* This is done by utilizing new WoW 11.0 APIs that are specific to abilities present on action bars.
## v11.0.4
* Fix: #2186 Activation overlays in Retail
Expand Down

0 comments on commit d2612df

Please sign in to comment.