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

Commit

Permalink
fix: fixed auto change target.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 9, 2023
1 parent 03cb213 commit 68ccaf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Resources/HostileCastingArea.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
927,
930,
1038,
1167,
1365,
1385,
1688,
Expand Down
3 changes: 2 additions & 1 deletion RotationSolver/Commands/RSCommands_Actions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ internal static void UpdateRotationState()
{
DoStateCommandType(StateCommandType.Manual);
}
if(Svc.Targets.Target?.TargetObjectId != Player.Object.ObjectId)
if(DataCenter.StateType == StateCommandType.Manual
&& !( Svc.Targets.Target is BattleChara b && b.CurrentHp > 0))
{
Svc.Targets.Target = target;
}
Expand Down

0 comments on commit 68ccaf0

Please sign in to comment.