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

Commit

Permalink
fix: manual fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Feb 16, 2024
1 parent d225d24 commit a2254e1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
23 changes: 23 additions & 0 deletions RotationSolver.Basic/Actions/ActionTargetInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,29 @@ private readonly bool CheckTimeToKill(GameObject gameObject)
{
return FindTargetArea(canTargets, canAffects, range, player);
}
else if (DataCenter.IsManual)
{
var t = Svc.Targets.Target as BattleChara;

if (t == null) return null;

if (IsSingleTarget)
{
if (canTargets.Contains(Svc.Targets.Target))
{
return new(t, [.. GetAffects(t, canAffects)], t.Position);
}
}
else
{
var effects = GetAffects(t, canAffects).ToArray();
if(effects.Length >= _action.Config.AoeCount)
{
return new(t, effects, t.Position);
}
}
return null;
}

var targets = GetMostCanTargetObjects(canTargets, canAffects,
skipAoeCheck ? 0 : _action.Config.AoeCount);
Expand Down
1 change: 0 additions & 1 deletion RotationSolver.Basic/Actions/BaseAction.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using ECommons.DalamudServices;
using ECommons.GameHelpers;
using FFXIVClientStructs.FFXIV.Client.Game;
using static Dalamud.Interface.Utility.Raii.ImRaii;
using Action = Lumina.Excel.GeneratedSheets.Action;

namespace RotationSolver.Basic.Actions;
Expand Down

0 comments on commit a2254e1

Please sign in to comment.