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

Commit

Permalink
fix: ast use AspectedBenefic when not in combat.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Feb 7, 2023
1 parent c9a36bd commit 52ddf21
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 11 additions & 0 deletions RotationSolver/Rotations/Healer/AST/AST_Default.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Dalamud.Game.ClientState.JobGauge.Enums;
using RotationSolver.Actions;
using RotationSolver.Actions.BaseAction;
using RotationSolver.Configuration.RotationConfig;
using RotationSolver.Data;
using RotationSolver.Helpers;
Expand All @@ -26,6 +27,12 @@ internal sealed class AST_Default : AST_Base
{DescType.BreakingAction, $"{Divination}"}
};

private static IBaseAction AspectedBeneficDefense { get; } = new BaseAction(ActionID.AspectedBenefic, true, isEot: true)
{
ChoiceTarget = TargetFilter.FindAttackedTarget,
TargetStatus = new StatusID[] { StatusID.AspectedBenefic },
};

private protected override bool DefenceSingleAbility(byte abilitiesRemaining, out IAction act)
{
//天星交错
Expand All @@ -46,6 +53,10 @@ private protected override bool DefenceAreaAbility(byte abilitiesRemaining, out

private protected override bool GeneralGCD(out IAction act)
{
//Add AspectedBeneficwhen not in combat.
if (!InCombat && TargetUpdater.PartyTanks.Any(t => !t.HasStatus(true, StatusID.AspectedBenefic))
&& AspectedBeneficDefense.CanUse(out act)) return true;

//群体输出
if (Gravity.CanUse(out act)) return true;

Expand Down
2 changes: 0 additions & 2 deletions RotationSolver/Windows/RotationConfigWindow_Debug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ private void DrawDebugTab()

private unsafe void DrawStatus()
{
ImGui.Text(ActionUpdater.WeaponRemain.ToString());

if ((IntPtr)FateManager.Instance() != IntPtr.Zero)
{
ImGui.Text("Fate: " + TargetUpdater.FateId.ToString());
Expand Down

0 comments on commit 52ddf21

Please sign in to comment.