Skip to content

Commit bdef5f2

Browse files
committed
Initial Rotation Cleanup
1 parent d95a36d commit bdef5f2

File tree

8 files changed

+10
-192
lines changed

8 files changed

+10
-192
lines changed

Diff for: Rotations/Evoker/Initial/Blank.lua

-174
This file was deleted.

Diff for: Rotations/Hunter/Initial/InitialHunter.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ actionList.Interrupt = function()
177177
if br.canInterrupt(thisUnit,ui.value("Interrupt At")) then
178178
-- Freezing Trap
179179
if ui.hecked("Freezing Trap") and cast.able.freezingTrap() then
180-
for i = 1, #enemies.yards40 do
181-
thisUnit = enemies.yards40[i]
180+
for j = 1, #enemies.yards40 do
181+
thisUnit = enemies.yards40[j]
182182
if unit.distance(thisUnit) > 8 and cast.timeRemain(thisUnit) > 3 then
183183
if cast.freezingTrap(thisUnit,"ground") then return true end
184184
end

Diff for: Rotations/Mage/Initial/CronoMageInitial.lua

-7
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,10 @@ end
8282
local buff
8383
local cast
8484
local cd
85-
local debuff
86-
local has
8785
local mode
88-
local power
89-
local talent
9086
local ui
91-
local pet
92-
local spell
9387
local unit
9488
local units
95-
local use
9689
-- General Locals
9790
local haltProfile
9891
local profileStop

Diff for: Rotations/Mage/Initial/MageInitial.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ local function createOptions()
3131
-----------------------
3232
section = br.ui:createSection(br.ui.window.profile, "General")
3333

34+
br.ui:checkSectionState(section)
3435
-------------------------
3536
--- DEFENSIVE OPTIONS ---
3637
-------------------------
@@ -183,4 +184,4 @@ br._G.tinsert(br.rotations[id],{
183184
toggles = createToggles,
184185
options = createOptions,
185186
run = runRotation,
186-
})
187+
})

Diff for: Rotations/Priest/Initial/PriestInitial.lua

+2-5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ local function createOptions()
3131
-----------------------
3232
section = br.ui:createSection(br.ui.window.profile, "General")
3333

34+
br.ui:checkSectionState(section)
3435
-------------------------
3536
--- DEFENSIVE OPTIONS ---
3637
-------------------------
@@ -68,14 +69,10 @@ local buff
6869
local cast
6970
local cd
7071
local debuff
71-
local has
7272
local mode
7373
local ui
74-
local pet
75-
local spell
7674
local unit
7775
local units
78-
local use
7976
-- General Locals
8077
local haltProfile
8178
local profileStop
@@ -216,4 +213,4 @@ tinsert(br.rotations[id],{
216213
toggles = createToggles,
217214
options = createOptions,
218215
run = runRotation,
219-
})
216+
})

Diff for: Rotations/Rogue/Initial/InitialRogue.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ local function eviscerateFinish(thisUnit)
113113
local GetSpellDescription = br._G["GetSpellDescription"]
114114
local desc = GetSpellDescription(spell.eviscerate)
115115
local damage = 0
116-
local finishHim = false
116+
finishHim = false
117117
if ui.value("Eviscerate Execute") ~= 3 and combo > 0 and not unit.isDummy(thisUnit) then
118118
local comboStart = desc:find(" "..combo.." ",1,true)
119119
if comboStart ~= nil then

Diff for: Rotations/Shaman/Initial/ShamanInitial.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ local function ghostWolf()
109109
if cast.ghostWolf("player") then ui.debug("Casting Ghost Wolf [Moving]") end
110110
end
111111
elseif ui.mode.ghostWolf == 2 then
112-
if cast.able.ghostWolf() and not buff.ghostWolf.exists() and unit.moving() then
112+
if cast.able.ghostWolf() and not buff.ghostWolf.exists() and unit.moving() then
113113
if ui.toggle("Ghost Wolf Key") then
114114
if cast.ghostWolf("player") then ui.debug("Casting Ghost Wolf [Keybind]") end
115115
end

Diff for: Rotations/Warrior/Initial/InitialWarrior.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ local function createOptions()
4949
----------------------
5050
section = br.ui:createSection(br.ui.window.profile, "Toggle Keys")
5151

52+
br.ui:checkSectionState(section)
5253
end
5354
optionTable = {{
5455
[1] = "Rotation Options",
@@ -171,7 +172,7 @@ local function runRotation()
171172
if spell.known.shieldSlam() and cast.able.shieldSlam and unit.exists(units.dyn5) and unit.distance(units.dyn5) < 5 then
172173
if cast.shieldSlam() then ui.debug("Casting Shield Slam") return true end
173174
end
174-
-- WhirlWind
175+
-- WhirlWind
175176
if spell.known.whirlwind() and cast.able.whirlwind() and unit.exists(units.dyn5) and unit.distance(units.dyn5) < 5 then
176177
if cast.whirlwind() then ui.debug("Casting Whirlwind") return true end
177178
end

0 commit comments

Comments
 (0)