|
|
@ -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 |
|
|
|
|
|
|
|
|
|
|
|