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

Commit

Permalink
fix: fix for casting & moving bug for Tingle.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jan 28, 2023
1 parent 89d313b commit 1326219
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions RotationSolver/Actions/BaseAction/BaseAction_ActionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,25 @@ public unsafe virtual bool CanUse(out IAction act, bool mustUse = false, bool em

if (!WillCooldown) return false;

if (IsGeneralGCD)
if (!emptyOrSkipCombo)
{
if (!emptyOrSkipCombo && !CheckForCombo()) return false;

if (CastTime > 0 && MovingUpdater.IsMoving)
if (IsGeneralGCD)
{
if (!player.HasStatus(true, CustomRotation.Swiftcast.StatusProvide))
{
if (!CheckForCombo()) return false;
}
else
{
if (RecastTimeRemain > ActionUpdater.WeaponRemain + ActionUpdater.WeaponTotal)
return false;
}
}
}
else

if (CastTime > 0 && MovingUpdater.IsMoving)
{
if (!emptyOrSkipCombo && RecastTimeRemain > ActionUpdater.WeaponRemain + ActionUpdater.WeaponTotal)
if (!player.HasStatus(true, CustomRotation.Swiftcast.StatusProvide))
{
return false;
}
}

if (!FindTarget(mustUse, out var target)) return false;
Expand Down

0 comments on commit 1326219

Please sign in to comment.