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

Commit

Permalink
fix: fixed wardensPaean target finding.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Oct 6, 2023
1 parent 5492c13 commit a28823b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion RotationSolver.Basic/Rotations/Basic/BRD_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,21 @@ protected static bool SongEndAfterGCD(uint gctCount = 0, float offset = 0)
/// <summary>
///
/// </summary>
public static IBaseAction WardensPaean { get; } = new BaseAction(ActionID.WardensPaean, ActionOption.Heal);
public static IBaseAction WardensPaean { get; } = new BaseAction(ActionID.WardensPaean, ActionOption.Heal)
{
ChoiceTarget = (tars, mustUse) =>
{
if (DyingPeople.Any())
{
return DyingPeople.OrderBy(ObjectHelper.DistanceToPlayer).First();
}
else if (WeakenPeople.Any())
{
return WeakenPeople.OrderBy(ObjectHelper.DistanceToPlayer).First();
}
return null;
},
};

/// <summary>
///
Expand Down

0 comments on commit a28823b

Please sign in to comment.