From 1565569adb8a195bdb5055ca77a6e42d91054130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Wed, 12 Apr 2023 08:53:41 +0800 Subject: [PATCH] fix: changed back from the positional check. --- RotationSolver/Watcher.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/RotationSolver/Watcher.cs b/RotationSolver/Watcher.cs index c727a78ee..142a50d22 100644 --- a/RotationSolver/Watcher.cs +++ b/RotationSolver/Watcher.cs @@ -36,7 +36,7 @@ private static unsafe void ReceiveAbilityEffect(uint sourceId, IntPtr sourceChar if (Service.Player == null) return; var set = new ActionEffectSet(effectHeader, effectArray, effectTargets); - ActionFromSelf(sourceId, set); + ActionFromSelf(sourceId, set, effectArray->Param2); ActionFromEnemy(sourceId, set); } @@ -50,7 +50,7 @@ private static void ActionFromEnemy(uint sourceId, ActionEffectSet set) ShowStrEnemy = set.ToString(); } - private static void ActionFromSelf(uint sourceId, ActionEffectSet set) + private static void ActionFromSelf(uint sourceId, ActionEffectSet set, byte flag) { if (sourceId != Service.Player.ObjectId) return; if (set.Type != ActionType.Spell) return; @@ -61,8 +61,6 @@ private static void ActionFromSelf(uint sourceId, ActionEffectSet set) if (tar == null || action == null) return; - var flag = set.TargetEffects[0][0].Param2; - //Record DataCenter.AddActionRec(set.Action); ShowStrSelf = set.ToString();