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

more heal threshold settings #92

Merged
merged 1 commit into from
May 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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