Skip to content

Commit

Permalink
Merge pull request #168 from FFXIV-CombatReborn/remove-target-updater
Browse files Browse the repository at this point in the history
Fixed a bug that could prevent selected target from updating
  • Loading branch information
NostraThomas99 authored Jun 8, 2024
2 parents a1beedc + 4063bfa commit 76c4eb5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions RotationSolver/Commands/RSCommands_Actions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,7 @@ public static void DoAction()
if (tar != null && tar != Player.Object && tar.IsEnemy())
{
DataCenter.HostileTarget = tar;
if (!DataCenter.IsManual
&& (Service.Config.SwitchTargetFriendly || ((Svc.Targets.Target?.IsEnemy() ?? true)
|| Svc.Targets.Target?.GetObjectKind() == Dalamud.Game.ClientState.Objects.Enums.ObjectKind.Treasure)))
{
Svc.Targets.Target = tar;
}
Svc.Targets.Target = tar;
}
}

Expand Down

0 comments on commit 76c4eb5

Please sign in to comment.