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

Commit

Permalink
fix: fixed the Melee Positional draw.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 10, 2023
1 parent 4cdb483 commit 948dd9c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions RotationSolver/UI/OverlayWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ private static void DrawPositional()
if (!Service.Player.IsJobCategory(JobRole.Tank)
&& !Service.Player.IsJobCategory(JobRole.Melee) ) return;

if (!(ActionUpdater.NextGCDAction?.IsSingleTarget ?? false)) return;

var target = ActionUpdater.NextGCDAction?.Target?.IsNPCEnemy() ?? false
? ActionUpdater.NextGCDAction.Target
: Service.TargetManager.Target?.IsNPCEnemy() ?? false
Expand Down Expand Up @@ -156,13 +154,11 @@ private static void DrawPositional()
DrawBoundary(pts2, offsetColor);
}

if (ActionUpdater.NextGCDAction == null || !ActionUpdater.NextGCDAction.Target.IsNPCEnemy()) return;

List<Vector2> pts = new List<Vector2>(4 * COUNT);
bool wrong = target.DistanceToPlayer() > 3;
if (Service.Config.DrawPositional && !Service.Player.HasStatus(true, StatusID.TrueNorth))
{
var shouldPos = ActionUpdater.NextGCDAction.EnemyPositional;
var shouldPos = ActionUpdater.NextGCDAction?.EnemyPositional ?? EnemyPositional.None;

switch (shouldPos)
{
Expand Down

0 comments on commit 948dd9c

Please sign in to comment.