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

Commit

Permalink
fix: removed one bad status from previous version.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 2, 2023
1 parent 635b63a commit 8b4eb77
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ public partial class BaseAction

public Func<BattleChara, bool> ActionCheck { get; set; } = null;

protected virtual bool CheckBadStatus => true;

private bool WillCooldown
{
get
Expand Down Expand Up @@ -58,7 +56,7 @@ public unsafe virtual bool CanUse(out IAction act, CanUseOption option = CanUseO

if (!option.HasFlag(CanUseOption.SkipDisable) && !IsEnabled) return false;

if (CheckBadStatus && ConfigurationHelper.BadStatus.Contains(ActionManager.Instance()->GetActionStatus(ActionType.Spell, AdjustedID)))
if (ConfigurationHelper.BadStatus.Contains(ActionManager.Instance()->GetActionStatus(ActionType.Spell, AdjustedID)))
return false;

if (!EnoughLevel) return false;
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Helpers/ConfigurationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public record PositionalInfo(EnemyPositional Pos, byte[] Tags);
579, //Between Area
574, //Job
573, //没学会 ?
572, //一些额外条件未满足 ?
//572, //一些额外条件未满足 ?
};

public static readonly VirtualKey[] Keys = new VirtualKey[] { VirtualKey.CONTROL, VirtualKey.SHIFT, VirtualKey.MENU };
Expand Down
1 change: 0 additions & 1 deletion RotationSolver.Basic/Rotations/Basic/NIN_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public abstract class NIN_Base : CustomRotation

public class NinAction : BaseAction, INinAction
{
protected override bool CheckBadStatus => false;
public IBaseAction[] Ninjutsu { get; }
internal NinAction(ActionID actionID, params IBaseAction[] ninjutsu)
: base(actionID, false, false)
Expand Down

0 comments on commit 8b4eb77

Please sign in to comment.