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

Commit

Permalink
fix: fix for changing target strategy.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Feb 14, 2023
1 parent 8f0b6e1 commit b9e6470
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RotationSolver/Commands/RSCommands_Actions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ internal static unsafe void DoAnAction(bool isGCD)
//Service.ChatGui.Print($"{act}, {act.Target.Name}, {ActionUpdater.AbilityRemainCount}, {ActionUpdater.WeaponElapsed}");
#endif
//Change Target
if (Service.TargetManager.Target is not PlayerCharacter && (act.Target?.IsNPCEnemy() ?? false))
if ((Service.TargetManager.Target?.IsNPCEnemy() ?? true)
&& (act.Target?.IsNPCEnemy() ?? false))
{
Service.TargetManager.SetTarget(act.Target);
}
Expand Down

0 comments on commit b9e6470

Please sign in to comment.