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

Commit

Permalink
fix: changed the status check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed May 24, 2023
1 parent 5d6d57d commit 427ba70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Rotations/CustomRotation_Ability.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ protected virtual bool EmergencyAbility(IAction nextGCD, out IAction act)
if (Configuration.PluginConfiguration.GetValue(SettingsCommand.AutoUseTrueNorth)
&& action.EnemyPositional != EnemyPositional.None && action.Target != null)
{
if (action.EnemyPositional != action.Target.FindEnemyPositional() && action.Target.HasPositional() && !Player.HasStatus(true, StatusID.RightEye))
if (action.EnemyPositional != action.Target.FindEnemyPositional() && action.Target.HasPositional())
{
if (TrueNorth.CanUse(out act, CanUseOption.EmptyOrSkipCombo | CanUseOption.OnLastAbility)) return true;
}
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Rotations/CustomRotation_Actions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ internal RoleAction(ActionID actionID, JobRole[] roles, ActionOption option = Ac
public static IBaseAction TrueNorth { get; } = new RoleAction(ActionID.TrueNorth,
new JobRole[] { JobRole.Melee }, ActionOption.Heal)
{
StatusProvide = new StatusID[] { StatusID.TrueNorth },
StatusProvide = new StatusID[] { StatusID.TrueNorth, StatusID.RightEye },
};

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver/UI/OverlayWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ private static void DrawPositional()

private static bool CanDrawPositional(GameObject target)
{
return !Player.Object.HasStatus(true, StatusID.TrueNorth) && !Player.Object.HasStatus(true, StatusID.RightEye) && target.HasPositional();
return !Player.Object.HasStatus(true, CustomRotation.TrueNorth.StatusProvide) && target.HasPositional();
}

static void DrawFill(Vector3[] pts1, Vector3[] pts2, Vector3 color)
Expand Down

0 comments on commit 427ba70

Please sign in to comment.