File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 123123function TLM :TRAIT_CONFIG_UPDATED (_ , configID )
124124 RunNextFrame (function ()
125125 self :UpdateBlizzardLoadout (configID );
126+ if configID == C_ClassTalents .GetActiveConfigID () then
127+ self :DiscoverNewLoadouts ();
128+ self :TriggerEvent (self .Event .LoadoutListUpdated );
129+ end
126130 end );
127131end
128132
@@ -422,6 +426,18 @@ function TLM:UpdateBlizzardLoadouts()
422426 self :TriggerEvent (self .Event .LoadoutListUpdated );
423427end
424428
429+ function TLM :DiscoverNewLoadouts ()
430+ local classID = self .playerClassID ;
431+ for index = 1 , GetNumSpecializations () do
432+ local specID = C_SpecializationInfo .GetSpecializationInfo (index );
433+ for _ , configID in pairs (C_ClassTalents .GetConfigIDsBySpecID (specID )) do
434+ if not self .db .blizzardLoadouts [classID ][specID ][self .playerName ][configID ] then
435+ self :UpdateBlizzardLoadout (configID );
436+ end
437+ end
438+ end
439+ end
440+
425441function TLM :UpdateBlizzardLoadout (configID , specID )
426442 local classID = self .playerClassID ;
427443 specID = specID or self :GetBlizzardLoadoutSpec (configID );
You can’t perform that action at this time.
0 commit comments