From 2c4e048df25cbc6d1b0f673ea06d0b61b672bc61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Mon, 10 Apr 2023 16:32:14 +0800 Subject: [PATCH] fix: not drawing offset whill State is cancel. --- RotationSolver/RotationSolver.csproj | 2 -- RotationSolver/SpeechHelper.cs | 4 +--- RotationSolver/UI/OverlayWindow.cs | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/RotationSolver/RotationSolver.csproj b/RotationSolver/RotationSolver.csproj index b5508ea8b..a450de86a 100644 --- a/RotationSolver/RotationSolver.csproj +++ b/RotationSolver/RotationSolver.csproj @@ -6,12 +6,10 @@ - - diff --git a/RotationSolver/SpeechHelper.cs b/RotationSolver/SpeechHelper.cs index 70ee46433..4d9b17991 100644 --- a/RotationSolver/SpeechHelper.cs +++ b/RotationSolver/SpeechHelper.cs @@ -1,6 +1,4 @@ -using Dalamud.Logging; -using System.Diagnostics; -using System.Speech.Synthesis; +using System.Diagnostics; using System.Text; namespace RotationSolver; diff --git a/RotationSolver/UI/OverlayWindow.cs b/RotationSolver/UI/OverlayWindow.cs index 697a59f0f..b10c80169 100644 --- a/RotationSolver/UI/OverlayWindow.cs +++ b/RotationSolver/UI/OverlayWindow.cs @@ -141,7 +141,7 @@ private static void DrawPositional() float radius = target.HitboxRadius + Service.Player.HitboxRadius + 3; float rotation = target.Rotation; - if (Service.Config.DrawMeleeOffset && DataCenter.InCombat) + if (Service.Config.DrawMeleeOffset && DataCenter.StateType != StateCommandType.Cancel) { var offsetColor = new Vector3(0.8f, 0.3f, 0.2f); List pts1 = new List(4 * COUNT);