Skip to content

Commit

Permalink
Register PLAYER_TALENT_UPDATE event on cataclysm
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds authored and Stanzilla committed May 9, 2024
1 parent 995a698 commit b9f4c96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .luarc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"return-type-mismatch"
],
"diagnostics.globals": [
"WOW_PROJECT_WRATH_CLASSIC",
"WOW_PROJECT_CLASSIC",
"WOW_PROJECT_CATACLYSM_CLASSIC",
"BOOKTYPE_SPELL",
"FriendColor",
"HarmColor",
Expand Down
7 changes: 5 additions & 2 deletions LibRangeCheck-3.0/LibRangeCheck-3.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ if not lib then
end

local isRetail = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE
local isEra = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC
local isCata = WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC

local InCombatLockdownRestriction = function(unit) return InCombatLockdown() and not UnitCanAttack("player", unit) end

local _G = _G
Expand Down Expand Up @@ -1674,11 +1677,11 @@ function lib:activate()
frame:RegisterEvent("CHARACTER_POINTS_CHANGED")
frame:RegisterEvent("SPELLS_CHANGED")

if isEra or isWrath then
if isEra or isCata then
frame:RegisterEvent("CVAR_UPDATE")
end

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

Expand Down

0 comments on commit b9f4c96

Please sign in to comment.