Skip to content

Commit

Permalink
Merge pull request #422 from AcePetrucci/self-areabuff-target-range-fix
Browse files Browse the repository at this point in the history
Ignore Target for Self-Targeted Area Buffs
  • Loading branch information
LTS-FFXIV authored Oct 2, 2024
2 parents caa5f2a + 366425e commit badf6f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RotationSolver.Basic/Actions/ActionTargetInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -488,15 +488,15 @@ private bool CheckTimeToKill(IGameObject gameObject)
break;

case BeneficialAreaStrategy.OnTarget: // Target
if (Svc.Targets.Target != null && Svc.Targets.Target.DistanceToPlayer() < range)
if (Svc.Targets.Target != null && range != 0 && Svc.Targets.Target.DistanceToPlayer() < range)
{
var target = Svc.Targets.Target as IBattleChara;
return new TargetResult(target, GetAffects(target?.Position, canAffects).ToArray(), target?.Position);
}
break;
}

if (Svc.Targets.Target is IBattleChara b && b.DistanceToPlayer() < range &&
if (Svc.Targets.Target is IBattleChara b && range != 0 && b.DistanceToPlayer() < range &&
b.IsBossFromIcon() && b.HasPositional() && b.HitboxRadius <= 8)
{
return new TargetResult(b, GetAffects(b.Position, canAffects).ToArray(), b.Position);
Expand Down

0 comments on commit badf6f3

Please sign in to comment.