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

Commit

Permalink
fix: targe CutScene as between area
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Mar 6, 2023
1 parent b0ee44e commit 0a0333c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions RotationSolver/Commands/RSCommands_Actions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
4 changes: 2 additions & 2 deletions RotationSolver/Rotations/Tank/PLD/PLD_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
5 changes: 4 additions & 1 deletion RotationSolver/Updaters/SocialUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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;
Expand Down

0 comments on commit 0a0333c

Please sign in to comment.