From c75d22e06582708c83653610fd8e673ac2a65aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Sun, 2 Apr 2023 17:12:02 +0800 Subject: [PATCH] fix: Position lock is effective only in combat. --- RotationSolver.Basic/Rotations/CustomRotation_OtherInfo.cs | 1 - RotationSolver/Updaters/MovingController.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/RotationSolver.Basic/Rotations/CustomRotation_OtherInfo.cs b/RotationSolver.Basic/Rotations/CustomRotation_OtherInfo.cs index 86fa8a71e..b49622a4a 100644 --- a/RotationSolver.Basic/Rotations/CustomRotation_OtherInfo.cs +++ b/RotationSolver.Basic/Rotations/CustomRotation_OtherInfo.cs @@ -71,7 +71,6 @@ public abstract partial class CustomRotation protected static float PartyMembersAverHP => DataCenter.PartyMembersAverHP; #endregion - #region Target /// /// The player's target. diff --git a/RotationSolver/Updaters/MovingController.cs b/RotationSolver/Updaters/MovingController.cs index 782425346..d1591f3bb 100644 --- a/RotationSolver/Updaters/MovingController.cs +++ b/RotationSolver/Updaters/MovingController.cs @@ -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]]