Skip to content

Commit

Permalink
powerprediction: Update vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed Jul 6, 2023
1 parent 34db5ca commit 89817c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions elements/powerprediction.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ local _, ns = ...
local oUF = ns.oUF

-- sourced from FrameXML/AlternatePowerBar.lua
local ADDITIONAL_POWER_BAR_INDEX = _G.ADDITIONAL_POWER_BAR_INDEX or 0
local ALT_MANA_BAR_PAIR_DISPLAY_INFO = _G.ALT_MANA_BAR_PAIR_DISPLAY_INFO
local ALT_POWER_BAR_PAIR_DISPLAY_INFO = _G.ALT_POWER_BAR_PAIR_DISPLAY_INFO
local ADDITIONAL_POWER_BAR_INDEX = 0

local _, playerClass = UnitClass('player')

Expand All @@ -66,8 +66,8 @@ local function Update(self, event, unit)

local _, _, _, startTime, endTime, _, _, _, spellID = UnitCastingInfo(unit)
local mainPowerType = UnitPowerType(unit)
local hasAltManaBar = ALT_MANA_BAR_PAIR_DISPLAY_INFO[playerClass]
and ALT_MANA_BAR_PAIR_DISPLAY_INFO[playerClass][mainPowerType]
local hasAltManaBar = ALT_POWER_BAR_PAIR_DISPLAY_INFO[playerClass]
and ALT_POWER_BAR_PAIR_DISPLAY_INFO[playerClass][mainPowerType]
local mainCost, altCost = 0, 0

if(event == 'UNIT_SPELLCAST_START' and startTime ~= endTime) then
Expand Down

0 comments on commit 89817c2

Please sign in to comment.