From 5453ddc85e746e763e1dc829cc8e37c5ec27213f Mon Sep 17 00:00:00 2001 From: Cilraaz Date: Mon, 23 Sep 2024 08:46:55 -0400 Subject: [PATCH] feat(ProtWar): Add OffGCD option for Demolish --- HeroRotation_Warrior/Protection.lua | 2 +- HeroRotation_Warrior/Settings.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HeroRotation_Warrior/Protection.lua b/HeroRotation_Warrior/Protection.lua index a9d61e31..5c8d55eb 100644 --- a/HeroRotation_Warrior/Protection.lua +++ b/HeroRotation_Warrior/Protection.lua @@ -403,7 +403,7 @@ local function APL() end -- demolish,if=buff.colossal_might.stack>=3 if S.Demolish:IsCastable() and (Player:BuffStack(S.ColossalMightBuff) >= 3) then - if Cast(S.Demolish, nil, nil, not TargetInMeleeRange) then return "demolish main "; end + if Cast(S.Demolish, Settings.Protection.GCDasOffGCD.Demolish, nil, not Target:IsInMeleeRange(12)) then return "demolish main 32"; end end -- thunderous_roar if CDsON() and S.ThunderousRoar:IsCastable() then diff --git a/HeroRotation_Warrior/Settings.lua b/HeroRotation_Warrior/Settings.lua index 09de4c07..f1d83150 100644 --- a/HeroRotation_Warrior/Settings.lua +++ b/HeroRotation_Warrior/Settings.lua @@ -97,6 +97,7 @@ HR.GUISettings.APL.Warrior = { }, GCDasOffGCD = { Avatar = false, + Demolish = false, DemoralizingShout = false, Shockwave = true, ThunderousRoar = false,