Skip to content

Commit

Permalink
Merge pull request #124 from FFXIV-CombatReborn/undo-bad-target-check
Browse files Browse the repository at this point in the history
Revert "Adds check to prevent spamming of unlearned abilities"
  • Loading branch information
NostraThomas99 authored Apr 22, 2024
2 parents 6513444 + 2573c26 commit 60f6887
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions RotationSolver.Basic/Actions/BaseAction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using ECommons.DalamudServices;
using ECommons.GameFunctions;
using ECommons.GameHelpers;
using FFXIVClientStructs.FFXIV.Client.Game;
using Action = Lumina.Excel.GeneratedSheets.Action;
Expand Down Expand Up @@ -157,20 +156,10 @@ public bool CanUse(out IAction act, bool skipStatusProvideCheck = false, bool sk
{
Target = PreviewTarget.Value;
}
if (!CanUseActionOnTarget(PreviewTarget.Value)) return false;

return true;
}

private unsafe bool CanUseActionOnTarget(TargetResult value)
{
var target = value.Target;
if (target == null) return false;

var canUseOnTarget = ActionManager.CanUseActionOnTarget(AdjustedID, target.GameObject());
return canUseOnTarget;
}

/// <inheritdoc/>
public bool CanUse(out IAction act, CanUseOption option, byte gcdCountForAbility = 0)
{
Expand Down

0 comments on commit 60f6887

Please sign in to comment.