Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: add an IgnoreCastCheck Option for canUse.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 12, 2023
1 parent 8ac7466 commit 13096b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Actions/BaseAction_ActionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public unsafe virtual bool CanUse(out IAction act, CanUseOption option = CanUseO
}
}

if (CastTime > 0 && DataCenter.IsMoving &&
if (!option.HasFlag(CanUseOption.IgnoreCastCheck) && CastTime > 0 && DataCenter.IsMoving &&
!player.HasStatus(true, CustomRotation.Swiftcast.StatusProvide)) return false;

if (IsGeneralGCD && IsEot && IsFriendly && IActionHelper.IsLastGCD(true, this)
Expand Down
5 changes: 5 additions & 0 deletions RotationSolver.Basic/Data/CanUseOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ public enum CanUseOption : byte
/// Ignore the target data.
/// </summary>
IgnoreTarget = 1 << 3,

/// <summary>
/// Ignore the check of casting an action while moving.
/// </summary>
IgnoreCastCheck = 1 << 4,
}

0 comments on commit 13096b1

Please sign in to comment.