0051bb4 - add death strike tracking
[wowui.git] / kehys / updater.lua
index 72c51ed..94977d4 100644 (file)
@@ -267,6 +267,17 @@ function addon.FrameUpdate(frame)
             elseif frame.glow:IsShown() then
                 frame.glow:Hide();
             end
             elseif frame.glow:IsShown() then
                 frame.glow:Hide();
             end
+            -- DK death strike tracking
+            if frame.isdk and frame.rolename == "TANK" then
+                local power = UnitPower(unit);
+                if power < 45 then
+                    frame.bottomwarn:Show();
+                elseif frame.bottomwarn:IsShown() then
+                    frame.bottomwarn:Hide();
+                end
+            elseif frame.bottomwarn:IsShown() then
+                frame.bottomwarn:Hide();
+            end
             -- overlays
             if next(frame.alert) then
                 -- major
             -- overlays
             if next(frame.alert) then
                 -- major