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

Commit

Permalink
Merge pull request #92 from FFXIV-CombatReborn/The-gang-configures-Wa…
Browse files Browse the repository at this point in the history
…rrior

more heal threshold settings
  • Loading branch information
LTS-FFXIV authored May 20, 2024
2 parents 151a5df + df0770e commit d075d5d
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions BasicRotations/Tank/WAR_zBeta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@ public sealed class WAR_zBeta : WarriorRotation
public bool SoloIntuition { get; set; } = false;

[Range(0, 1, ConfigUnitType.Percent)]
[RotationConfig(CombatType.PvE, Name = "Nascent Flash Heal Threshold (Target must drop below this threshold for Nascent Flash to be used)")]
[RotationConfig(CombatType.PvE, Name = "Nascent Flash Heal Threshold")]
public float FlashHeal { get; set; } = 0.6f;

[Range(0, 1, ConfigUnitType.Percent)]
[RotationConfig(CombatType.PvE, Name = "Thrill Of Battle Heal Threshold")]
public float ThrillOfBattleHeal { get; set; } = 0.6f;

[Range(0, 1, ConfigUnitType.Percent)]
[RotationConfig(CombatType.PvE, Name = "Equilibrium Heal Threshold")]
public float EquilibriumHeal { get; set; } = 0.6f;

#endregion

#region Countdown Logic
Expand Down Expand Up @@ -82,11 +90,16 @@ protected override bool AttackAbility(IAction nextGCD, out IAction? act)

protected override bool GeneralAbility(IAction nextGCD, out IAction? act)
{
// If the player's health ratio is less than 0.6 (60%), consider using healing abilities.
if (Player.GetHealthRatio() < 0.6f)
// If the player's health ratio is less than configured setting, consider using healing abilities.
if (Player.GetHealthRatio() < ThrillOfBattleHeal)
{
// If Thrill of Battle can be used, use it and return true.
if (ThrillOfBattlePvE.CanUse(out act)) return true;
}

// If the player's health ratio is less than configured setting, consider using healing abilities.
if (Player.GetHealthRatio() < EquilibriumHeal)
{

// If Equilibrium can be used, use it and return true.
if (EquilibriumPvE.CanUse(out act)) return true;
Expand Down

0 comments on commit d075d5d

Please sign in to comment.