diff --git a/RotationSolver.Basic/Actions/ActionCooldownInfo.cs b/RotationSolver.Basic/Actions/ActionCooldownInfo.cs index 184b3d652..d15d81610 100644 --- a/RotationSolver.Basic/Actions/ActionCooldownInfo.cs +++ b/RotationSolver.Basic/Actions/ActionCooldownInfo.cs @@ -166,16 +166,8 @@ internal bool CooldownCheck(bool isEmpty, bool onLastAbility, bool ignoreClippin if (!_action.Info.IsRealGCD) { - if (onLastAbility) - { - if (DataCenter.NextAbilityToNextGCD > ActionManagerHelper.GetCurrentAnimationLock() + DataCenter.Ping + DataCenter.MinAnimationLock) return false; - } - else if (!ignoreClippingCheck) - { - if (DataCenter.NextAbilityToNextGCD < ActionManagerHelper.GetCurrentAnimationLock()) return false; - } + if (ActionManagerHelper.GetCurrentAnimationLock() > 0) return false; } - return true; } } diff --git a/RotationSolver.Basic/DataCenter.cs b/RotationSolver.Basic/DataCenter.cs index 5d056abac..f63e04549 100644 --- a/RotationSolver.Basic/DataCenter.cs +++ b/RotationSolver.Basic/DataCenter.cs @@ -128,7 +128,7 @@ public static IAction? CommandNextAction return next?.Act ?? ActionSequencerAction; } } - public static Job Job { get; set; } + public static Job Job => Player.Job; public static JobRole Role => Service.GetSheet().GetRow((uint)Job)?.GetJobRole() ?? JobRole.None; diff --git a/RotationSolver/Updaters/RotationUpdater.cs b/RotationSolver/Updaters/RotationUpdater.cs index 224f568da..b4ce72e9f 100644 --- a/RotationSolver/Updaters/RotationUpdater.cs +++ b/RotationSolver/Updaters/RotationUpdater.cs @@ -509,14 +509,12 @@ private static void UpdateCustomRotation() DataCenter.RightNowRotation = instance; } RightRotationActions = DataCenter.RightNowRotation?.AllActions ?? []; - DataCenter.Job = DataCenter.RightNowRotation?.Job ?? Job.ADV; return; } CustomRotation.MoveTarget = null; DataCenter.RightNowRotation = null; RightRotationActions = []; - DataCenter.Job = DataCenter.RightNowRotation?.Job ?? Job.ADV; static ICustomRotation? GetRotation(Type? t) {