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
end
if not Player:IsFacing(unit) then
return false
end
if not AvengersShield:IsInRange(unit) then
return false
end
if unit:IsCasting() and unit:IsInterruptible() then
if unit:IsCasting() then
target = unit
return true
end
@ -119,6 +123,10 @@ local function CombatRotation()
return Consecrate:Cast(Player)
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.
if OfDuskAndDawn:IsKnown() then
local HpToSor = 3
@ -141,10 +149,6 @@ local function CombatRotation()
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.
if Player:GetEnemies(10) > 1 and AvengersShield:IsKnownAndUsable() and AvengersShieldTarget:Exists() then
return AvengersShield:Cast(AvengersShieldTarget)
@ -157,7 +161,6 @@ local function CombatRotation()
-- Hammer of Wrath
if HammerOfWrath() then
print("HOW!")
return true
end

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

Loading…
Cancel
Save