@@ -164,11 +164,13 @@ function ST:show_bar(hand)
164
164
self :hide_bar (hand )
165
165
end
166
166
elseif self .player_class == " WARRIOR" then
167
- if not (db_class .hide_in_tank_spec and self .has_devastate ) then
167
+ if db_class .hide_in_tank_spec and self .has_devastate then
168
+ self :hide_bar (hand )
169
+ elseif db_class .hide_in_arms_spec and self .has_bladestorm then
170
+ self :hide_bar (hand )
171
+ else
168
172
self :get_bar_frame (hand ):Show ()
169
173
self :get_hiding_anchor_frame (hand ):Show ()
170
- else
171
- self :hide_bar (hand )
172
174
end
173
175
else
174
176
self :get_bar_frame (hand ):Show ()
@@ -806,9 +808,10 @@ function ST:get_druid_talent_info()
806
808
end
807
809
808
810
function ST :get_warrior_talent_info ()
809
- -- Function to determine if the player is in tank spec,
810
- -- i.e. has Devastate talented .
811
+ -- Functions to get talents for specs that the user may want to hide
812
+ -- the swing timer in .
811
813
self .has_devastate = select (5 , GetTalentInfo (3 , 20 )) == 1
814
+ self .has_bladestorm = select (5 , GetTalentInfo (1 , 27 )) == 1
812
815
end
813
816
814
817
---- --------------------------------------------------------------------------------
@@ -1051,25 +1054,13 @@ function ST:register_slashcommands()
1051
1054
end
1052
1055
1053
1056
function ST :test1 ()
1054
- -- local db = self:get_class_table()
1055
- -- if db.bars_locked then
1056
- -- self:Print("Unlocking bar frames")
1057
- -- db.bars_locked = false
1058
- -- self:unlock_frames()
1059
- -- else
1060
- -- self:Print("Locking bar frames")
1061
- -- db.bars_locked = true
1062
- -- self:lock_frames()
1063
- -- end
1064
1057
end
1065
1058
1066
1059
function ST :open_menu ()
1067
1060
local ACD = LibStub (" AceConfigDialog-3.0" )
1068
1061
ACD :Open (addon_name .. " _Options" )
1069
1062
end
1070
1063
1071
- if st .debug then st .utils .print_msg (' -- Parsed main1.lua module correctly' ) end
1072
-
1073
1064
-- =========================================================================================
1074
1065
-- Funcs to apply per-class settings
1075
1066
-- =========================================================================================
@@ -1086,3 +1077,8 @@ function ST:class_on_current_spell_cast_changed(is_cancelled)
1086
1077
self [c ].on_current_spell_cast_changed (self , is_cancelled )
1087
1078
end
1088
1079
end
1080
+
1081
+ -- =========================================================================================
1082
+ -- For debug and lua syntax errors
1083
+ -- =========================================================================================
1084
+ if st .debug then st .utils .print_msg (' -- Parsed main1.lua module correctly' ) end
0 commit comments