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

Commit

Permalink
fix: not drawing offset whill State is cancel.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 10, 2023
1 parent 8c44f2e commit 2c4e048
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions RotationSolver/RotationSolver.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@

<ItemGroup>
<PackageReference Include="DalamudPackager" Version="2.1.11" />
<PackageReference Include="System.Speech" Version="7.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\RotationSolver.Basic\RotationSolver.Basic.csproj" />

<EmbeddedResource Include="Localization\*.json" Exclude="Localization\Localization.json" />
</ItemGroup>
</Project>
4 changes: 1 addition & 3 deletions RotationSolver/SpeechHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Dalamud.Logging;
using System.Diagnostics;
using System.Speech.Synthesis;
using System.Diagnostics;
using System.Text;

namespace RotationSolver;
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver/UI/OverlayWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vector2> pts1 = new List<Vector2>(4 * COUNT);
Expand Down

0 comments on commit 2c4e048

Please sign in to comment.