Skip to content

Commit

Permalink
Fixed dynamic group issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tdymel committed Aug 3, 2017
1 parent a7315db commit ffc11ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions GUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ function MPOWA:ApplyDynamicGroup(i)
local inc = 0
local spacing = val["dynamicspacing"] + 65
if val["dynamicsorted"] then
local grp, final, time = {}, {}
local grp, final = {}, {}
for cat, va in pairs(self.SAVE) do
if self.frames[cat] and (tnbr(va["groupnumber"])==i or cat==i) then
if va["test"] or self.testAll then
Expand All @@ -532,10 +532,11 @@ function MPOWA:ApplyDynamicGroup(i)
if (self.active[cat] and not self.NeedUpdate[cat]) then
grp[cat] = self:GetDuration(self.active[cat], cat)
else
time = self:GetCooldown(va["buffname"]) or 0
if (self.NeedUpdate[cat] and not self.active[cat] and time>0) then
grp[cat] = time
end
grp[cat] = self:GetCooldown(va["buffname"]) or 0
--if (self.NeedUpdate[cat] and not self.active[cat] and time>0) then
--grp[cat] = time
--end
--grp[cat] = time
end
end
end
Expand Down Expand Up @@ -569,7 +570,7 @@ function MPOWA:ApplyDynamicGroup(i)
end
else
for cat, va in pairs(self.SAVE) do
if self.frames[cat] and (tnbr(va["groupnumber"])==i or cat==i) and ((self.active[cat] and not self.NeedUpdate[cat]) or (self.NeedUpdate[cat] and not self.active[cat] and (self:GetCooldown(va["buffname"]) or 0)>0) or va["test"] or self.testAll) then
if self.frames[cat] and (tnbr(va["groupnumber"])==i or cat==i) and ((self.active[cat] and not self.NeedUpdate[cat]) or (self.NeedUpdate[cat] and not self.active[cat] and ((self:GetCooldown(va["buffname"]) or 0)>0) or not va["cooldown"]) or va["test"] or self.testAll) then
self.frames[cat][1]:ClearAllPoints()
if val["dynamicorientation"] == 1 then
self.frames[cat][1]:SetPoint("TOPLEFT", self.frames[i][5], "TOPLEFT", inc*spacing, 0)
Expand Down
2 changes: 1 addition & 1 deletion Init.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CreateFrame("Frame", "MPOWA", UIParent)
MPOWA.Build = 58
MPOWA.Build = 59
MPOWA.Cloaded = false
MPOWA.loaded = false
MPOWA.selected = 1
Expand Down

0 comments on commit ffc11ce

Please # to comment.