Skip to content

Commit

Permalink
Update all actions when talents change
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Jan 4, 2025
1 parent 0d3ed0a commit 30ee99c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LibRangeCheck-3.0/LibRangeCheck-3.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4570,7 +4570,9 @@ function lib:CHARACTER_POINTS_CHANGED()
end

function lib:PLAYER_TALENT_UPDATE()
actionsInit = nil
self:scheduleInit()
lastUpdate = UpdateDelay
end

function lib:SPELLS_CHANGED()
Expand Down Expand Up @@ -5062,9 +5064,7 @@ function lib:activate()
frame:RegisterEvent("CVAR_UPDATE")
end

if isRetail or isCata then
frame:RegisterEvent("PLAYER_TALENT_UPDATE")
end
frame:RegisterEvent("PLAYER_TALENT_UPDATE")

local _, playerClass = UnitClass("player")
if playerClass == "MAGE" or playerClass == "SHAMAN" then
Expand Down

0 comments on commit 30ee99c

Please sign in to comment.