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

Commit

Permalink
fix: sge kardia only bind to non tank when there is no tanks for more…
Browse files Browse the repository at this point in the history
… than 3 - 5 s.
  • Loading branch information
ArchiDog1998 committed Oct 23, 2023
1 parent 5b9851c commit fa2e289
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RotationSolver.Basic/Rotations/Basic/SGE_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ protected static bool AddersgallEndAfterGCD(uint gctCount = 0, float offset = 0)
/// </summary>
public static IBaseAction Diagnosis { get; } = new BaseAction(ActionID.Diagnosis, ActionOption.Heal);

static RandomDelay noTankDelay = new RandomDelay(() => (3, 5));
/// <summary>
///
/// </summary>
Expand All @@ -143,7 +144,10 @@ protected static bool AddersgallEndAfterGCD(uint gctCount = 0, float offset = 0)
ChoiceTarget = (Targets, mustUse) =>
{
var targets = Targets.GetJobCategory(JobRole.Tank);
targets = targets.Any() ? targets : Targets;
if (noTankDelay.Delay(!targets.Any()))
{
targets = targets.Any() ? targets : Targets;
}

if (!targets.Any()) return null;

Expand Down

0 comments on commit fa2e289

Please sign in to comment.