From 0a0333c2ec6bfda0820dbeacefd3d2d74ac9d9e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Mon, 6 Mar 2023 08:31:50 +0800 Subject: [PATCH] fix: targe CutScene as between area --- RotationSolver/Commands/RSCommands_Actions.cs | 6 +++--- RotationSolver/Rotations/Tank/PLD/PLD_Default.cs | 4 ++-- RotationSolver/Updaters/SocialUpdater.cs | 5 ++++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/RotationSolver/Commands/RSCommands_Actions.cs b/RotationSolver/Commands/RSCommands_Actions.cs index 9abee65e1..be295f214 100644 --- a/RotationSolver/Commands/RSCommands_Actions.cs +++ b/RotationSolver/Commands/RSCommands_Actions.cs @@ -62,14 +62,14 @@ internal static void CancelState() internal static void UpdateRotationState() { if (Service.ClientState.LocalPlayer.CurrentHp == 0 - || Service.Conditions[ConditionFlag.LoggingOut] - || Service.Conditions[ConditionFlag.OccupiedInCutSceneEvent]) + || Service.Conditions[ConditionFlag.LoggingOut]) { CancelState(); } else if (Service.Configuration.AutoOffBetweenArea && ( Service.Conditions[ConditionFlag.BetweenAreas] - || Service.Conditions[ConditionFlag.BetweenAreas51])) + || Service.Conditions[ConditionFlag.BetweenAreas51]) + || Service.Conditions[ConditionFlag.OccupiedInCutSceneEvent]) { CancelState(); } diff --git a/RotationSolver/Rotations/Tank/PLD/PLD_Default.cs b/RotationSolver/Rotations/Tank/PLD/PLD_Default.cs index 950693553..680bae75c 100644 --- a/RotationSolver/Rotations/Tank/PLD/PLD_Default.cs +++ b/RotationSolver/Rotations/Tank/PLD/PLD_Default.cs @@ -12,9 +12,9 @@ namespace RotationSolver.Rotations.Tank.PLD; internal class PLD_Default : PLD_Base { public override string GameVersion => "6.31"; - public override string RotationName => "Default"; + public override string RotationName => "Tentative v1.2"; - public override string Description => "Tentative v1.2\nPlease work well!"; + public override string Description => "Please work well!"; private protected override IRotationConfigSet CreateConfiguration() { diff --git a/RotationSolver/Updaters/SocialUpdater.cs b/RotationSolver/Updaters/SocialUpdater.cs index 6fd2c4b14..f1613281b 100644 --- a/RotationSolver/Updaters/SocialUpdater.cs +++ b/RotationSolver/Updaters/SocialUpdater.cs @@ -57,6 +57,9 @@ internal static void Enable() static async void DutyState_DutyCompleted(object sender, ushort e) { RSCommands.CancelState(); + + if (TargetUpdater.PartyMembers.Count() < 2) return; + await Task.Delay(new Random().Next(4000, 6000)); Service.Configuration.DutyEnd.AddMacro(); @@ -80,7 +83,7 @@ internal static void Disable() internal static async void UpdateSocial() { - if (ActionUpdater.InCombat) return; + if (ActionUpdater.InCombat || TargetUpdater.PartyMembers.Count() < 2) return; if (CanSaying && CanSocial) { CanSaying = false;