Skip to content

Commit

Permalink
Added LunarPower etc. power handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Feb 2, 2024
1 parent 1ea5bce commit 80471af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Aptechka.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,9 @@ local PowerTypeHandlers = {
RUNIC_POWER = MakeForcedPowerHandlerForType(Enum.PowerType.RunicPower),
FURY = MakeForcedPowerHandlerForType(Enum.PowerType.Fury),
PAIN = MakeForcedPowerHandlerForType(Enum.PowerType.Fury), -- Pain was merged with Fury in DF
INSANITY = MakeForcedPowerHandlerForType(Enum.PowerType.Insanity),
LUNAR_POWER = MakeForcedPowerHandlerForType(Enum.PowerType.LunarPower),
MAELSTROM = MakeForcedPowerHandlerForType(Enum.PowerType.Maelstrom),
}

function Aptechka.FrameUpdatePower(frame, unit, ptype)
Expand Down
4 changes: 4 additions & 0 deletions frame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,11 @@ end
local forcedStandardFillPowerTypes = {
RAGE = true,
FURY = true,
PAIN = true,
RUNIC_POWER = true,
INSANITY = true,
MAELSTROM = true,
LUNAR_POWER = true,
}

local PowerBar_OnPowerTypeChange = function(powerbar, powerType, hidePower)
Expand Down

0 comments on commit 80471af

Please sign in to comment.