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

Commit

Permalink
fix: Position lock is effective only in combat.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 2, 2023
1 parent 388b608 commit c75d22e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion RotationSolver.Basic/Rotations/CustomRotation_OtherInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public abstract partial class CustomRotation
protected static float PartyMembersAverHP => DataCenter.PartyMembersAverHP;
#endregion


#region Target
/// <summary>
/// The player's target.
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver/Updaters/MovingController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private static bool MovingDetour(IntPtr ptr)
if (Service.Conditions[ConditionFlag.OccupiedInEvent])
return movingHook.Original(ptr);

if (Service.Config.PoslockCasting && _posLocker)
if (Service.Config.PoslockCasting && _posLocker && DataCenter.InCombat)
{
//没有键盘取消
if (!Service.KeyState[ConfigurationHelper.Keys[Service.Config.PoslockModifier]]
Expand Down

0 comments on commit c75d22e

Please sign in to comment.