Skip to content

Commit

Permalink
Merge pull request #529 from ShalolaAuthor/main
Browse files Browse the repository at this point in the history
fixing Aspected Benefic usage logic and new Essential Dignity logic
  • Loading branch information
LTS-FFXIV authored Jan 5, 2025
2 parents 6799c5d + 1fdf5e4 commit c70dda4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions BasicRotations/Healer/AST_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public sealed class AST_Default : AstrologianRotation
[RotationConfig(CombatType.PvE, Name = "Minimum HP threshold party member needs to be to use Aspected Benefic")]
public float AspectedBeneficHeal { get; set; } = 0.4f;

[Range(0, 1, ConfigUnitType.Percent)]
[RotationConfig(CombatType.PvE, Name = "Minimum HP threshold party member needs to be to use Essential Dignity")]
public float EssentialDignityHeal { get; set; } = 0.4f;

[Range(0, 1, ConfigUnitType.Percent)]
[RotationConfig(CombatType.PvE, Name = "Minimum HP threshold among party member needed to use Horoscope")]
public float HoroscopeHeal { get; set; } = 0.3f;
Expand Down Expand Up @@ -136,7 +140,8 @@ protected override bool HealSingleAbility(IAction nextGCD, out IAction? act)
if (InCombat && TheArrowPvE.CanUse(out act)) return true;
if (InCombat && TheEwerPvE.CanUse(out act)) return true;

if (EssentialDignityPvE.CanUse(out act, usedUp: true)) return true;
if (EssentialDignityPvE.CanUse(out act, usedUp: true)
&& EssentialDignityPvE.Target.Target?.GetHealthRatio() < EssentialDignityHeal) return true;

if (CelestialIntersectionPvE.CanUse(out act, usedUp: true)) return true;

Expand Down Expand Up @@ -196,19 +201,14 @@ protected override bool AttackAbility(IAction nextGCD, out IAction? act)
// Use LordOfCrownsPvE if you have SimpleLord enabled and Divination is active
if (SimpleLord && InCombat && Player.HasStatus(true, StatusID.Divination) && LordOfCrownsPvE.CanUse(out act)) return true;

if (!Player.HasStatus(true, StatusID.Lightspeed)
&& InCombat
&& DivinationPvE.Cooldown.ElapsedAfter(115)
&& LightspeedPvE.CanUse(out act, usedUp: true)) return true;

if (IsBurst && !IsMoving
&& DivinationPvE.CanUse(out act)) return true;

if (AstralDrawPvE.CanUse(out act, usedUp: IsBurst)) return true;

if (!Player.HasStatus(true, StatusID.Lightspeed)
&& (InBurstStatus || DivinationPvE.Cooldown.ElapsedAfter(115))
&& InCombat
&& (InBurstStatus || DivinationPvE.Cooldown.ElapsedAfter(115) || DivinationPvE.Cooldown.WillHaveOneCharge(5) || Player.HasStatus(true, StatusID.Divination))
&& LightspeedPvE.CanUse(out act, usedUp: true)) return true;

if (InCombat)
Expand Down Expand Up @@ -242,7 +242,7 @@ protected override bool HealSingleGCD(out IAction? act)

if (AspectedBeneficPvE.CanUse(out act)
&& (IsMoving
|| AspectedBeneficPvE.Target.Target?.GetHealthRatio() > AspectedBeneficHeal)) return true;
|| AspectedBeneficPvE.Target.Target?.GetHealthRatio() < AspectedBeneficHeal)) return true;

if (BeneficIiPvE.CanUse(out act)) return true;
if (BeneficPvE.CanUse(out act)) return true;
Expand Down

0 comments on commit c70dda4

Please sign in to comment.