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

Commit

Permalink
fix: add a CountOfMembersIn2minsBurst for burst check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 5, 2023
1 parent afb6b85 commit a26d63d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
18 changes: 18 additions & 0 deletions RotationSolver.Basic/Helpers/StatusHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,24 @@ public static class StatusHelper
StatusID.Holmgang, StatusID.WillDead, StatusID.WalkingDead,
};

public static StatusID[] Burst2minsBuff { get; } = new StatusID[]
{
//StatusID.Divination,
StatusID.Brotherhood,
StatusID.BattleLitany,
StatusID.ArcaneCircle,
StatusID.BattleVoice,
//StatusID.TechnicalStepFinished,
StatusID.SearingLight,
StatusID.Embolden,
};

public static StatusID[] Burst2minsDeBuff { get; } = new StatusID[]
{
StatusID.ChainStratagem,
//StatusID.Mug,
};

public static bool NeedHealing(this BattleChara p) => p.WillStatusEndGCD(2, 0, false, NoNeedHealingStatus);

/// <summary>
Expand Down
10 changes: 10 additions & 0 deletions RotationSolver.Basic/Rotations/CustomRotation_OtherInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ public abstract partial class CustomRotation
protected static IEnumerable<BattleChara> WeakenPeople => DataCenter.WeakenPeople;
protected static IEnumerable<BattleChara> DyingPeople => DataCenter.DyingPeople;

protected static byte CountOfMembersIn2minsBurst => (byte)(StatusHelper.Burst2minsBuff.Count(s =>
{
if (!Player.HasStatus(false, s)) return false;
return !Player.WillStatusEndGCD(0, 0, false, s);
}) + StatusHelper.Burst2minsDeBuff.Count(s =>
{
if (!Target.HasStatus(false, s)) return false;
return !Target.WillStatusEndGCD(0, 0, false, s);
}));

/// <summary>
/// Whether the number of party members is 8.
/// </summary>
Expand Down

0 comments on commit a26d63d

Please sign in to comment.