# HG changeset patch # User James D. Callahan III # Date 1346257035 18000 # Node ID 75751f08d9f54a025c7fb05df2f2ca4d3dfeba48 # Parent 526e78d7ce5179900970fa83150faac138a6d57b Account for sub headers in the TradeSkill window. diff -r 526e78d7ce51 -r 75751f08d9f5 Main.lua --- a/Main.lua Tue Aug 28 22:20:18 2012 -0500 +++ b/Main.lua Wed Aug 29 11:17:15 2012 -0500 @@ -1363,7 +1363,7 @@ for tradeskill_index = 1, _G.GetNumTradeSkills() do local name, tradeskill_type, _, is_expanded = _G.GetTradeSkillInfo(tradeskill_index) - if tradeskill_type == "header" then + if tradeskill_type == "header" or tradeskill_type == "subheader" then if not is_expanded then header_list[name] = true _G.ExpandTradeSkillSubClass(tradeskill_index) @@ -1521,6 +1521,7 @@ private.tracked_line = spell_line end + function WDP:UNIT_SPELLCAST_SUCCEEDED(event_name, unit_id, spell_name, spell_rank, spell_line, spell_id) if unit_id ~= "player" then return