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

Commit

Permalink
fix: add shadowtime for DRK.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 28, 2023
1 parent 0f696b7 commit 1572491
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion RotationSolver.Basic/Rotations/Basic/DRK_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ protected static bool DarkSideEndAfterGCD(uint gctCount = 0, float offset = 0)
{
return EndAfterGCD(DarkSideTimeRemaining, gctCount, offset);
}

private static float ShadowTimeRemaining => JobGauge.ShadowTimeRemaining / 1000f;

protected static bool ShadowTimeEndAfter(float time)
{
return EndAfter(ShadowTimeRemaining, time);
}

protected static bool ShadowTimeEndAfterGCD(uint gctCount = 0, float offset = 0)
{
return EndAfterGCD(ShadowTimeRemaining, gctCount, offset);
}
#endregion

#region Attack Single
Expand Down Expand Up @@ -97,7 +109,7 @@ protected static bool DarkSideEndAfterGCD(uint gctCount = 0, float offset = 0)

public static IBaseAction ShadowBringer { get; } = new BaseAction(ActionID.ShadowBringer)
{
ActionCheck = b => DarkSideTimeRemaining > 0,
ActionCheck = b => !DarkSideEndAfterGCD(),
};
#endregion

Expand Down

0 comments on commit 1572491

Please sign in to comment.