File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,8 @@ local function rebuildSpells(playerLevel, isLevelUpEvent)
198
198
if (# category .spells > 0 ) then
199
199
tinsert (spellsAndHeaders , category )
200
200
local sortFunc =
201
- (category .key == MISSINGTALENT_KEY or category .key == IGNORED_KEY ) and byNameThenLevel or byLevelThenName
201
+ (category .key == MISSINGTALENT_KEY or category .key == IGNORED_KEY ) and byNameThenLevel or
202
+ byLevelThenName
202
203
sort (category .spells , sortFunc )
203
204
local totalCost = 0
204
205
for _ , s in ipairs (category .spells ) do
@@ -456,15 +457,12 @@ end
456
457
457
458
local function hookCTP ()
458
459
wt .ctpDb = ClassTrainerPlusDBPC
459
- hooksecurefunc (
460
- " CTP_UpdateService" ,
461
- function ()
462
- rebuildSpells (UnitLevel (" player" ))
463
- end
464
- )
460
+ HookCTPUpdate (function ()
461
+ rebuildSpells (UnitLevel (" player" ))
462
+ end )
465
463
end
466
464
467
- if (CTP_UpdateService ) then
465
+ if (HookCTPUpdate ) then
468
466
hookCTP ()
469
467
end
470
468
You can’t perform that action at this time.
0 commit comments