Skip to content

Commit

Permalink
Build 29: Fixed inverse arathmithic
Browse files Browse the repository at this point in the history
  • Loading branch information
tdymel committed Dec 22, 2016
1 parent e1a0e5b commit 142e0cf
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions ModifiedPowerAuras.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CreateFrame("Frame", "MPOWA", UIParent)
MPOWA.Build = 28
MPOWA.Build = 29
MPOWA.Cloaded = false
MPOWA.loaded = false
MPOWA.selected = 1
Expand Down Expand Up @@ -134,7 +134,7 @@ local GT = GetTime
local tnbr = tonumber

local UpdateTime, LastUpdate = 0.05, 0
local SELECTEDICON = "Interface\\ICONS\\Ability_Warrior_BattleShout"
local SELECTEDICON = "Interface\\Icons\\Ability_Warrior_BattleShout"
local MPowa_BuffFrameUpdateTime = 0
local MPowa_BuffFrameFlashTime = 0
local MPowa_BuffFrameFlashState = 0
Expand Down Expand Up @@ -270,7 +270,11 @@ function MPOWA:OnUpdate(elapsed)
end
else
if path["inverse"] then
self:FHide(cat)
if duration > 0 then
self:FHide(cat)
else
self:FShow(cat)
end
else
if path["secsleft"] then
if duration<=path["secsleftdur"] then
Expand All @@ -279,7 +283,11 @@ function MPOWA:OnUpdate(elapsed)
self:FHide(cat)
end
else
self:FShow(cat)
if duration > 0 then
self:FShow(cat)
else
self:FHide(cat)
end
end
end
end
Expand Down

0 comments on commit 142e0cf

Please sign in to comment.