Skip to content

Commit

Permalink
Merge pull request #43 from FFXIV-CombatReborn/abilityremain-timing
Browse files Browse the repository at this point in the history
Abilityremain timing and attempt 2 at true north fix
  • Loading branch information
LTS-FFXIV authored Apr 1, 2024
2 parents f2264dd + 28df9ae commit 5029c3a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions RotationSolver.Basic/DataCenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,19 +206,19 @@ public static float GCDTime(uint gcdCount = 0, float offset = 0)
/// </summary>
public static unsafe float ActionRemain => ActionManagerHelper.GetCurrentAnimationLock();

public static float AbilityRemain
{
get
{
var gcdRemain = WeaponRemain;
// Check if we should account for the animation lock and ping.
if (gcdRemain - MinAnimationLock - Ping <= ActionRemain)
{
return gcdRemain + MinAnimationLock + Ping;
}
return ActionRemain;
}
}
public static float AbilityRemain => ActionManagerHelper.GetCurrentAnimationLock();
//{
// get
// {
// var gcdRemain = WeaponRemain;
// // Check if we should account for the animation lock and ping.
// if (gcdRemain - MinAnimationLock - Ping <= ActionRemain)
// {
// return gcdRemain + MinAnimationLock + Ping;
// }
// return ActionRemain;
// }
//}

// Update the property to conditionally use AbilityRemain based on the NoPingCheck setting.
public static float NextAbilityToNextGCD => WeaponRemain - ActionRemain;
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Rotations/CustomRotation_Ability.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private bool Ability(IAction nextGCD, out IAction? act)

if (DataCenter.MergedStatus.HasFlag(AutoStatus.Positional))
{
if (TrueNorthPvE.CanUse(out act, onLastAbility: true)) return true;
if (TrueNorthPvE.CanUse(out act)) return true;
}

IBaseAction.TargetOverride = TargetType.Heal;
Expand Down

0 comments on commit 5029c3a

Please sign in to comment.