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

Commit

Permalink
fix: Fixed the auto cancel of territory changing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Feb 6, 2023
1 parent a5496d9 commit de935ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion RotationSolver/Commands/RSCommands_Actions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,18 @@ internal static unsafe void DoAnAction(bool isGCD)

internal static void UpdateRotationState()
{
//结束战斗,那就关闭。
if (Service.ClientState.LocalPlayer.CurrentHp == 0
|| Service.Conditions[Dalamud.Game.ClientState.Conditions.ConditionFlag.LoggingOut]
|| Service.Conditions[Dalamud.Game.ClientState.Conditions.ConditionFlag.OccupiedInCutSceneEvent])
{
CancelState();
}
else if (Service.Configuration.AutoOffBetweenArea && (
Service.Conditions[Dalamud.Game.ClientState.Conditions.ConditionFlag.BetweenAreas]
|| Service.Conditions[Dalamud.Game.ClientState.Conditions.ConditionFlag.BetweenAreas51]))
{
CancelState();
}
//Auto start at count Down.
else if (Service.Configuration.StartOnCountdown && CountDown.CountDownTime > 0)
{
Expand Down

0 comments on commit de935ab

Please sign in to comment.