X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/c7542a4b3f3db7a87a8fecdaf2809b634b312a32..0051bb49579945bb78153b4c5009a0fa633ecce9:/kehys/updater.lua?ds=sidebyside diff --git a/kehys/updater.lua b/kehys/updater.lua index 72c51ed..94977d4 100644 --- a/kehys/updater.lua +++ b/kehys/updater.lua @@ -267,6 +267,17 @@ function addon.FrameUpdate(frame) 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