Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion modules/energytick.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
pfUI:RegisterModule("turtle-energytick", "vanilla:tbc", function ()
if not pfUI.uf or not pfUI.uf.player then return end
if C.unitframes and C.unitframes.player and C.unitframes.player.energy == "1" then
return
end
if not pfUI.uf or not pfUI.uf.player then return end
local energytick = CreateFrame("Frame", nil, pfUI.uf.player.power.bar)
energytick:SetAllPoints(pfUI.uf.player.power.bar)
Expand Down Expand Up @@ -112,4 +116,5 @@ pfUI:RegisterModule("turtle-energytick", "vanilla:tbc", function ()
-- run default unitframe update function
hookUpdateConfig(pfUI.uf.player)
end
end)

end)