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

Commit

Permalink
fix: fixed move ability can't be used issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 27, 2023
1 parent 4f10e3e commit 7a93be0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Resources/AnimationLockTime.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
"20258": 0.1,
"20304": 0.6,
"20542": 2.1,
"20543": 2.1,
"20640": 2.1,
"20710": 0.1,
"20715": 0.6,
Expand Down Expand Up @@ -527,6 +528,7 @@
"25784": 0.6,
"25785": 0.6,
"25788": 0.6,
"25790": 0.6,
"25793": 0.1,
"25796": 0.6,
"25797": 0.6,
Expand Down
11 changes: 10 additions & 1 deletion Resources/HostileCastingArea.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,14 @@
6091,
6229,
6453,
6178
6178,
3254,
25273,
25268,
16030,
16106,
16071,
9408,
9411,
25272
]
1 change: 0 additions & 1 deletion RotationSolver.Basic/Rotations/Basic/BLU_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using ECommons.DalamudServices;
using ECommons.ExcelServices;
using RotationSolver.Basic.Traits;
using static System.Net.WebRequestMethods;

namespace RotationSolver.Basic.Rotations.Basic;

Expand Down
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Rotations/Basic/DNC_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ protected static bool ExecuteStepGCD(out IAction act)
[RotationDesc(ActionID.EnAvant)]
protected sealed override bool MoveForwardAbility(out IAction act)
{
if (EnAvant.CanUse(out act, CanUseOption.MustUseEmpty)) return true;
if (EnAvant.CanUse(out act, CanUseOption.MustUseEmpty | CanUseOption.IgnoreClippingCheck)) return true;
return false;
}

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 @@ -236,7 +236,7 @@ private bool MovingAbility(SpecialCommandType specialType, out IAction act)
act = null;
if (specialType == SpecialCommandType.MoveForward && MoveForwardAbility(out act))
{
if (act is BaseAction b && ObjectHelper.DistanceToPlayer(b.Target) > 5) return true;
if (act is BaseAction b && (b.Target == Player || ObjectHelper.DistanceToPlayer(b.Target) > 5)) return true;
}
else if (specialType == SpecialCommandType.MoveBack)
{
Expand Down
3 changes: 0 additions & 3 deletions RotationSolver/Watcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ private static void ActionFromEnemy(ActionEffectSet set)
{
DataCenter.KnockbackStart = DateTime.Now;
DataCenter.KnockbackFinished = DateTime.Now + TimeSpan.FromSeconds(knock.Distance / (float)knock.Speed);
#if DEBUG
Svc.Chat.Print($"Knock back: {DataCenter.KnockbackStart} - {DataCenter.KnockbackFinished}");
#endif
}
break;
}
Expand Down

0 comments on commit 7a93be0

Please sign in to comment.