Some tweaks

main
Ryan Crockett 2 years ago
parent 1786febbb2
commit ba5da2df6a
  1. 15
      scripts/paladin/paladin_protection.lua
  2. 1
      scripts/paladin/shared/rebuke.lua

@ -42,11 +42,15 @@ local AvengersShieldTarget = Bastion.UnitManager:CreateCustomUnit('avengersshiel
return false return false
end end
if not Player:IsFacing(unit) then
return false
end
if not AvengersShield:IsInRange(unit) then if not AvengersShield:IsInRange(unit) then
return false return false
end end
if unit:IsCasting() and unit:IsInterruptible() then if unit:IsCasting() then
target = unit target = unit
return true return true
end end
@ -119,6 +123,10 @@ local function CombatRotation()
return Consecrate:Cast(Player) return Consecrate:Cast(Player)
end end
if WoG:IsKnownAndUsable() and Player:GetAuras():FindMy(ShinningLight):IsUp() and Player:GetHealthPercent() <= 51 and not Player:IsCastingOrChanneling() then
return WoG:Cast(Player)
end
-- Handle SoR specially if DuskAndDawn is known. -- Handle SoR specially if DuskAndDawn is known.
if OfDuskAndDawn:IsKnown() then if OfDuskAndDawn:IsKnown() then
local HpToSor = 3 local HpToSor = 3
@ -141,10 +149,6 @@ local function CombatRotation()
end end
end end
if WoG:IsKnownAndUsable() and Player:GetAuras():FindMy(ShinningLight):IsUp() and Player:GetHealthPercent() <= 51 and not Player:IsCastingOrChanneling() then
return WoG:Cast(Player)
end
-- Avengers shield with higher prio than Judgement in AOE. Prefer targets that are casting. -- Avengers shield with higher prio than Judgement in AOE. Prefer targets that are casting.
if Player:GetEnemies(10) > 1 and AvengersShield:IsKnownAndUsable() and AvengersShieldTarget:Exists() then if Player:GetEnemies(10) > 1 and AvengersShield:IsKnownAndUsable() and AvengersShieldTarget:Exists() then
return AvengersShield:Cast(AvengersShieldTarget) return AvengersShield:Cast(AvengersShieldTarget)
@ -157,7 +161,6 @@ local function CombatRotation()
-- Hammer of Wrath -- Hammer of Wrath
if HammerOfWrath() then if HammerOfWrath() then
print("HOW!")
return true return true
end end

@ -50,7 +50,6 @@ end)
---@type Rebuke ---@type Rebuke
function Rebuke() function Rebuke()
if RebukeTarget:Exists() and not Player:IsCastingOrChanneling() and _Rebuke:IsKnownAndUsable() then if RebukeTarget:Exists() and not Player:IsCastingOrChanneling() and _Rebuke:IsKnownAndUsable() then
print('HAS KICK TARGET, KICKING')
return _Rebuke:Cast(RebukeTarget) return _Rebuke:Cast(RebukeTarget)
end end
return false return false

Loading…
Cancel
Save