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

Commit

Permalink
fix: changed the auto target when friendly.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 5, 2023
1 parent 24d6e80 commit 7b4e78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RotationSolver/Commands/RSCommands_Actions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static void DoAction()
//Svc.Chat.Print($"{act}, {act.Target.Name}, {ActionUpdater.AbilityRemainCount}, {ActionUpdater.WeaponElapsed}");
#endif
//Change Target
if (act.Target != null && (Service.Config.TargetFriendly || ((Svc.Targets.Target?.IsNPCEnemy() ?? true)
if (act.Target != null && (Service.Config.TargetFriendly && DataCenter.StateType != StateCommandType.Manual || ((Svc.Targets.Target?.IsNPCEnemy() ?? true)
|| Svc.Targets.Target?.GetObjectKind() == Dalamud.Game.ClientState.Objects.Enums.ObjectKind.Treasure)
&& act.Target.IsNPCEnemy()))
{
Expand Down

0 comments on commit 7b4e78a

Please sign in to comment.