Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Reaper Pooling Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tykku committed May 6, 2024
1 parent 1855753 commit 26217ea
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions BasicRotations/Melee/RPR_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
[Api(1)]
public sealed class RPR_Default : ReaperRotation
{
#region Countdown Logic
[RotationConfig(CombatType.PvE, Name = "Wait until 50 stacks of Shroud to use Enshroud.")]
#region Config Options
[RotationConfig(CombatType.PvE, Name = "[Beta Option] Wait until 50 stacks of Shroud to use Enshroud.")]
public bool EnshroudPooling { get; set; } = false;
#endregion

#region Countdown Logic
protected override IAction? CountDownAction(float remainTime)
{
if (remainTime < HarpePvE.Info.CastTime + CountDownAhead
Expand Down Expand Up @@ -43,14 +45,8 @@ protected override bool AttackAbility(IAction nextGCD, out IAction? act)
&& ArcaneCirclePvE.CanUse(out act, skipAoeCheck: true)) return true;
}

if (IsTargetBoss && IsTargetDying ||
!EnshroudPooling && Shroud >= 50 ||
EnshroudPooling && Shroud >= 50 &&
(!PlentifulHarvestPvE.EnoughLevel ||
Player.HasStatus(true, StatusID.ArcaneCircle) ||
ArcaneCirclePvE.Cooldown.WillHaveOneCharge(8) ||
!Player.HasStatus(true, StatusID.ArcaneCircle) && ArcaneCirclePvE.Cooldown.WillHaveOneCharge(65) && !ArcaneCirclePvE.Cooldown.WillHaveOneCharge(50) ||
!Player.HasStatus(true, StatusID.ArcaneCircle) && Shroud >= 90))
if (IsTargetBoss && IsTargetDying || !EnshroudPooling && Shroud >= 50 || (EnshroudPooling && Shroud >= 50 &&
(!PlentifulHarvestPvE.EnoughLevel || Player.HasStatus(true, StatusID.ArcaneCircle) || ArcaneCirclePvE.Cooldown.WillHaveOneCharge(8) || !Player.HasStatus(true, StatusID.ArcaneCircle) && ArcaneCirclePvE.Cooldown.WillHaveOneCharge(65) && !ArcaneCirclePvE.Cooldown.WillHaveOneCharge(50) || !Player.HasStatus(true, StatusID.ArcaneCircle) && Shroud >= 90)))
{
if (EnshroudPvE.CanUse(out act)) return true;
}
Expand Down Expand Up @@ -148,7 +144,7 @@ protected override bool GeneralGCD(out IAction? act)

return base.GeneralGCD(out act);
}
#endregion
#endregion

#region Extra Methods
private bool Reaping(out IAction? act)
Expand Down

0 comments on commit 26217ea

Please sign in to comment.