@@ -71,8 +71,6 @@ local GetSpellBookItemInfo = GetSpellBookItemInfo
71
71
local GetSpellInfo = GetSpellInfo
72
72
local GetSpellTabInfo = GetSpellTabInfo
73
73
local GetTime = GetTime
74
- local GetCVar = GetCVar
75
- local SetCVar = SetCVar
76
74
local InCombatLockdown = InCombatLockdown
77
75
local IsItemInRange = IsItemInRange
78
76
local IsSpellInRange = IsSpellInRange
@@ -1021,10 +1019,6 @@ function lib:init(forced)
1021
1019
local _ , playerClass = UnitClass (" player" )
1022
1020
local _ , playerRace = UnitRace (" player" )
1023
1021
1024
- -- this will fix a problem where spells dont show as existing because they are 'hidden' (fix from LibDispel)
1025
- lib .skipRanks = true -- ignore the cvar calling scheduleInit
1026
- local undoRanks = (not isRetail and GetCVar (' ShowAllSpellRanks' ) ~= ' 1' ) and SetCVar (' ShowAllSpellRanks' , ' 1' )
1027
-
1028
1022
local interactList = InteractLists [playerRace ] or DefaultInteractList
1029
1023
self .handSlotItem = GetInventoryItemLink (" player" , HandSlotId )
1030
1024
local changed = false
@@ -1049,12 +1043,6 @@ function lib:init(forced)
1049
1043
if updateCheckers (self .petRC , self .petRCInCombat , createCheckerList (PetSpells [playerClass ], nil , interactList )) then
1050
1044
changed = true
1051
1045
end
1052
-
1053
- if undoRanks then -- fix from LibDispel
1054
- SetCVar (' ShowAllSpellRanks' , ' 0' )
1055
- end
1056
- lib .skipRanks = false -- allow cvar again
1057
-
1058
1046
if changed and self .callbacks then
1059
1047
self .callbacks :Fire (self .CHECKERS_CHANGED )
1060
1048
end
@@ -1265,7 +1253,7 @@ function lib:SPELLS_CHANGED()
1265
1253
end
1266
1254
1267
1255
function lib :CVAR_UPDATE (_ , cvar )
1268
- if cvar == " ShowAllSpellRanks" and not lib . skipRanks then
1256
+ if cvar == " ShowAllSpellRanks" then
1269
1257
self :scheduleInit ()
1270
1258
end
1271
1259
end
0 commit comments