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

Commit

Permalink
fix: remove the use of ActionManager.GetActionInRangeOrLoS
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 10, 2023
1 parent af7432b commit 730e3fe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions RotationSolver.Basic/Actions/BaseAction_Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -476,13 +476,15 @@ public unsafe bool CanUseTo(BattleChara tar)

if (!ActionManager.CanUseActionOnTarget(AdjustedID, tarAddress)) return false;

if((IntPtr)Service.RawPlayer == IntPtr.Zero) return false;
if((IntPtr)Service.RawPlayer == IntPtr.Zero || (IntPtr)tarAddress == IntPtr.Zero) return false;

var id = ActionManager.GetActionInRangeOrLoS(AdjustedID,
(FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)Service.RawPlayer,
tarAddress);
return true;

// var id = ActionManager.GetActionInRangeOrLoS(AdjustedID,
//(FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)Service.RawPlayer,
// tarAddress);

return id is 0 or 565;
// return id is 0 or 565;
}

private static bool NoAOE
Expand Down

0 comments on commit 730e3fe

Please sign in to comment.