Skip to content

Commit

Permalink
Havoc - Additional fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteOne committed Jun 2, 2024
1 parent f57571f commit 8f6e35f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 51 deletions.
59 changes: 9 additions & 50 deletions Rotations/Demon Hunter/Havoc/HavocCuteOne.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ local function createOptions()
br.ui:checkSectionState(section)
-- Cooldown Options
section = br.ui:createSection(br.ui.window.profile, "Cooldowns")
-- Flask Module
br.player.module.FlaskUp("Agility", section)
-- Augment Rune
br.ui:createCheckbox(section, "Augment Rune")
-- Potion
Expand All @@ -127,8 +125,6 @@ local function createOptions()
br.ui:checkSectionState(section)
-- Defensive Options
section = br.ui:createSection(br.ui.window.profile, "Defensive")
-- Basic Healing Module
br.player.module.BasicHealing(section)
-- Blur
br.ui:createSpinner(section, "Blur", 50, 0, 100, 5, "|cffFFBB00Health Percentage to use at.")
-- Darkness
Expand Down Expand Up @@ -168,8 +164,6 @@ local function createOptions()
br.ui:createDropdownWithout(section, "Interrupt Mode", br.dropOptions.Toggle, 6)
-- Mover Key Toggle
br.ui:createDropdownWithout(section, "Mover Mode", br.dropOptions.Toggle, 6)
-- Pause Toggle
br.ui:createDropdown(section, "Pause Mode", br.dropOptions.Toggle, 6)
br.ui:checkSectionState(section)
end
optionTable = { {
Expand Down Expand Up @@ -270,8 +264,6 @@ end -- End Action List - Extras
-- Action List - Defensive
actionList.Defensive = function()
if ui.useDefensive() then
-- Basic Heal Module
module.BasicHealing()
-- Blur
if ui.checked("Blur") and cast.able.blur() and unit.hp() <= ui.value("Blur") and unit.inCombat() then
if cast.blur() then
Expand Down Expand Up @@ -549,9 +541,6 @@ actionList.Precombat = function()
-- if not buff.felCrystalInfusion.exists() and use.able.felCrystalFragments() and has.felCrystalFragments() then
-- if use.felCrystalFragments() then ui.debug("Using Fel Crystal Fragments") return true end
-- end
-- Flask Module
-- flask
module.FlaskUp("Agility")

-- Use Item - Augmentation
-- augmentation
Expand Down Expand Up @@ -611,14 +600,8 @@ actionList.Precombat = function()
-- Sigil Of Flame
-- sigil_of_flame,if=!equipped.algethar_puzzle_box
if equiped.algetharPuzzleBox() then
if talent.preciseSigils and cast.able.sigilOfFlame("target", "aoe", 1, 8) then
if cast.sigilOfFlame("target", "aoe", 1, 8) then
ui.debug("Casting Sigil of Flame [Precombat]")
return true
end
end
if cast.able.sigilOfFlame("best", false, 1, 8) and not talent.preciseSigils then
if cast.sigilOfFlame("best", false, 1, 8) then
if cast.able.sigilOfFlame("target", "ground", 1, 8) then
if cast.sigilOfFlame("target", "ground", 1, 8) then
ui.debug("Casting Sigil of Flame [Precombat]")
return true
end
Expand Down Expand Up @@ -1085,14 +1068,8 @@ actionList.Combat = function()
if not unit.moving(units.dyn5) and #enemies.yards5 > 0
and talent.anyMeansNecessary and not debuff.essenceBreak.exists(units.dyn5) and #enemies.yards30 >= 4
then
if talent.preciseSigils and cast.able.sigilOfFlame(units.dyn30, "aoe", 1, 8) then
if cast.sigilOfFlame(units.dyn30, "aoe", 1, 8) then
ui.debug("Casting Sigil of Flame [Combat]")
return true
end
end
if cast.able.sigilOfFlame("best", false, 1, 8) and not talent.preciseSigils and not talent.concentratedSigils then
if cast.sigilOfFlame("best", false, 1, 8) then
if cast.able.sigilOfFlame(units.dyn30, "ground", 1, 8) then
if cast.sigilOfFlame(units.dyn30, "ground", 1, 8) then
ui.debug("Casting Sigil of Flame [Combat]")
return true
end
Expand Down Expand Up @@ -1144,18 +1121,12 @@ actionList.Combat = function()
-- Sigil Of Flame
-- sigil_of_flame,if=fury.deficit>=40&talent.any_means_necessary
if not unit.moving(units.dyn5) and #enemies.yards5 > 0 and fury.deficit() >= 40 and talent.anyMeansNecessary then
if talent.preciseSigils and cast.able.sigilOfFlame(units.dyn30, "aoe", 1, 8) then
if cast.able.sigilOfFlame(units.dyn30, "ground", 1, 8) then
if cast.sigilOfFlame(units.dyn30, "aoe", 1, 8) then
ui.debug("Casting Sigil of Flame - Any Means Necessary [Combat]")
return true
end
end
if cast.able.sigilOfFlame("best", false, 1, 8) and not talent.preciseSigils and not talent.concentratedSigils then
if cast.sigilOfFlame("best", false, 1, 8) then
ui.debug("Casting Sigil of Flame - Any Means Necessary [Combat]")
return true
end
end
end

-- Throw Glaive
Expand Down Expand Up @@ -1205,14 +1176,8 @@ actionList.Combat = function()
-- Sigil Of Flame
-- sigil_of_flame,if=raid_event.adds.in>15&fury.deficit>=30&buff.out_of_range.down
if not unit.moving(units.dyn5) and #enemies.yards5 > 0 and fury.deficit() >= 30 and unit.distance(units.dyn8AOE) < 8 then
if talent.preciseSigils and cast.able.sigilOfFlame(units.dyn30, "aoe", 1, 8) then
if cast.sigilOfFlame(units.dyn30, "aoe", 1, 8) then
ui.debug("Casting Sigil of Flame - Low Fury [Combat]")
return true
end
end
if cast.able.sigilOfFlame("best", false, 1, 8) and not talent.preciseSigils and not talent.concentratedSigils then
if cast.sigilOfFlame("best", false, 1, 8) then
if cast.able.sigilOfFlame(units.dyn30, "ground", 1, 8) then
if cast.sigilOfFlame(units.dyn30, "ground", 1, 8) then
ui.debug("Casting Sigil of Flame - Low Fury [Combat]")
return true
end
Expand Down Expand Up @@ -1277,14 +1242,8 @@ actionList.Combat = function()
-- Sigil Of Flame
-- sigil_of_flame,if=raid_event.adds.in>15&fury.deficit>=30&buff.out_of_range.down
if not unit.moving(units.dyn5) and #enemies.yards5 > 0 and fury.deficit() >= 30 and unit.distance(units.dyn8AoE) < 8 then
if talent.preciseSigils and cast.able.sigilOfFlame(units.dyn30, "aoe", 1, 8) then
if cast.sigilOfFlame(units.dyn30, "aoe", 1, 8) then
ui.debug("Casting Sigil of Flame - Low Fury 2 [Combat]")
return true
end
end
if cast.able.sigilOfFlame("best", false, 1, 8) and not talent.preciseSigils and not talent.concentratedSigils then
if cast.sigilOfFlame("best", false, 1, 8) then
if cast.able.sigilOfFlame(units.dyn30, "ground", 1, 8) then
if cast.sigilOfFlame(units.dyn30, "ground", 1, 8) then
ui.debug("Casting Sigil of Flame - Low Fury 2 [Combat]")
return true
end
Expand Down
2 changes: 1 addition & 1 deletion System/API/CD.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ br.api.itemCD = function(self, item, id)
-- @within cd.slot
cd.slot.exists = function(slotID)
if slotID == nil then return false end
return self.cd.slot.remain(slotID) > 0
return cd.slot.remain(slotID) > 0
end

--- Gets the time remaining on the equipment slot item cooldown or 0 if not.
Expand Down

0 comments on commit 8f6e35f

Please sign in to comment.