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

Commit

Permalink
addle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed Dec 11, 2023
1 parent 28bde36 commit 9c80bf3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions RotationSolver.Basic/Rotations/CustomRotation_Actions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ public override bool CanUse(out IAction act, CanUseOption option = CanUseOption.
/// </summary>
public static IBaseAction Addle { get; } = new RoleAction(ActionID.Addle, new JobRole[] { JobRole.RangedMagical }, ActionOption.Defense)
{
ChoiceTarget = (Targets, mustUse) =>
{
Targets = Targets.Where(b => b.IsTargetable && b.IsCasting && (b.TotalCastTime - b.CurrentCastTime < (WeaponTotal + WeaponRemain + Ping))).ToArray();
if (Targets.Any())
{
return Targets.OrderBy(ObjectHelper.IsTopPriorityHostile).First();
}
return null;
},
ActionCheck = (b, m) => !b.HasStatus(false, StatusID.Addle),
};

Expand Down

0 comments on commit 9c80bf3

Please sign in to comment.