Skip to content

Commit

Permalink
feat(Unholy): Minor APL update
Browse files Browse the repository at this point in the history
  • Loading branch information
Cilraaz committed Jul 24, 2024
1 parent d9d4595 commit d27a80a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions HeroRotation_DeathKnight/Unholy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ end

--- ===== CastTargetIf Condition Functions =====
local function EvaluateTargetIfFesteringStrikeAoE(TargetUnit)
-- if=debuff.festering_wound.stack<4&(buff.festering_scythe.react|cooldown.apocalypse.remains<gcd&debuff.festering_wound.stack=0)
return TargetUnit:DebuffStack(S.FesteringWoundDebuff) < 4 and (Player:BuffUp(S.FesteringScytheBuff) or S.Apocalypse:CooldownRemains() < Player:GCD() and TargetUnit:DebuffDown(S.FesteringWoundDebuff))
-- if=cooldown.apocalypse.remains<gcd&debuff.festering_wound.stack=0|buff.festering_scythe.react
return S.Apocalypse:CooldownRemains() < Player:GCD() and TargetUnit:DebuffDown(S.FesteringWoundDebuff) or Player:BuffUp(S.FesteringScytheBuff)
end

local function EvaluateTargetIfFesteringStrikeAoE2(TargetUnit)
Expand Down Expand Up @@ -258,7 +258,7 @@ local function AoE()
if S.Epidemic:IsReady() and (not VarPoolingRunicPower) then
if Cast(S.Epidemic, Settings.Unholy.GCDasOffGCD.Epidemic, nil, not Target:IsInRange(40)) then return "epidemic aoe 4"; end
end
-- festering_strike,target_if=min:debuff.festering_wound.stack,if=debuff.festering_wound.stack<4&(buff.festering_scythe.react|cooldown.apocalypse.remains<gcd&debuff.festering_wound.stack=0)
-- festering_strike,target_if=min:debuff.festering_wound.stack,if=cooldown.apocalypse.remains<gcd&debuff.festering_wound.stack=0|buff.festering_scythe.react
if FesteringAction:IsReady() then
if Everyone.CastTargetIf(FesteringAction, EnemiesMelee, "min", EvaluateTargetIfFilterFWStack, EvaluateTargetIfFesteringStrikeAoE, not Target:IsInMeleeRange(5)) then return "festering_strike aoe 6"; end
end
Expand All @@ -285,13 +285,13 @@ local function AoEBurst()
if WoundSpender:IsReady() then
if Everyone.CastTargetIf(WoundSpender, EnemiesMelee, "max", EvaluateTargetIfFilterFWStack, EvaluateTargetIfWoundSpenderAoEBurst, not Target:IsInMeleeRange(5)) then return "wound_spender aoe_burst 6"; end
end
-- epidemic,if=!variable.pooling_runic_power
if S.Epidemic:IsReady() and (not VarPoolingRunicPower) then
if Cast(S.Epidemic, Settings.Unholy.GCDasOffGCD.Epidemic, nil, not Target:IsInRange(40)) then return "epidemic aoe_burst 8"; end
end
-- festering_strike,if=buff.festering_scythe.react
if FesteringAction:IsReady() then
if Cast(FesteringAction, nil, nil, not Target:IsInMeleeRange(14)) then return "festering_scythe aoe_burst 10"; end
if Cast(FesteringAction, nil, nil, not Target:IsInMeleeRange(14)) then return "festering_scythe aoe_burst 8"; end
end
-- epidemic,if=!variable.pooling_runic_power
if S.Epidemic:IsReady() and (not VarPoolingRunicPower) then
if Cast(S.Epidemic, Settings.Unholy.GCDasOffGCD.Epidemic, nil, not Target:IsInRange(40)) then return "epidemic aoe_burst 10"; end
end
-- wound_spender
if WoundSpender:IsReady() then
Expand Down

0 comments on commit d27a80a

Please sign in to comment.