Skip to content

Commit

Permalink
Fix BoS in PerformCycle and PerformCycleBackwards functions
Browse files Browse the repository at this point in the history
  • Loading branch information
EsreverWoW committed Jul 30, 2022
1 parent aca4c7d commit eec0eb5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PallyPower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -909,15 +909,15 @@ function PallyPower:PerformCycle(name, class, skipzero)
cur = PallyPower_Assignments[name][class]
end
PallyPower_Assignments[name][class] = 0
for testB = cur + 1, self.isWrath and 4 or 7 do
for testB = cur + 1, self.isWrath and 5 or 7 do
cur = testB
if self:CanBuff(name, testB) and (self:NeedsBuff(class, testB) or shift or control) then
do
break
end
end
end
if (self.isWrath and cur == 4) or (not self.isWrath and cur == 7) then
if (self.isWrath and cur == 5) or (not self.isWrath and cur == 7) then
if skipzero then
if self:CanBuff(name, 1) then
if self.opt.SmartBuffs and (class == 1 or class == 2 or (self.isWrath and class == 10)) then
Expand Down Expand Up @@ -976,7 +976,7 @@ function PallyPower:PerformCycleBackwards(name, class, skipzero)
PallyPower_Assignments[name] = {}
end
if not PallyPower_Assignments[name][class] then
cur = self.isWrath and 4 or 7
cur = self.isWrath and 5 or 7
else
cur = PallyPower_Assignments[name][class]
local testB
Expand All @@ -996,7 +996,7 @@ function PallyPower:PerformCycleBackwards(name, class, skipzero)
testB = 0
end
if cur == 0 or skipzero and cur == testB then
cur = self.isWrath and 4 or 7
cur = self.isWrath and 5 or 7
end
end
PallyPower_Assignments[name][class] = 0
Expand Down

0 comments on commit eec0eb5

Please sign in to comment.