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

Solo Cooldown Bool #76

Merged
merged 1 commit into from
May 9, 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
7 changes: 5 additions & 2 deletions BasicRotations/Tank/WAR_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ public sealed class WAR_Default : WarriorRotation
#region Config Options
[RotationConfig(CombatType.PvE, Name = "Only use Nascent Flash if Tank Stance is off")]
public bool NeverscentFlash { get; set; } = false;
[RotationConfig(CombatType.PvE, Name = "Use Bloodwhetting/Raw intuition on single enemies")]
public bool SoloIntuition { get; set; } = false;
#endregion

#region Countdown Logic
Expand Down Expand Up @@ -90,13 +92,14 @@ protected override bool GeneralAbility(IAction nextGCD, out IAction? act)
// This method is responsible for determining the defensive abilities to use in a single-target situation.
protected override bool DefenseSingleAbility(IAction nextGCD, out IAction? act)
{
bool RawSingleTargets = SoloIntuition;
act = null;

// If the player currently has the Holmgang status and their health ratio is less than 0.3 (30%), don't use any defensive abilities.
if (Player.HasStatus(true, StatusID.Holmgang_409) && Player.GetHealthRatio() < 0.3f) return false;

// If Raw Intuition can be used and there are more than 2 hostiles in range, use it.
if (RawIntuitionPvE.CanUse(out act, onLastAbility: true) && NumberOfHostilesInRange > 2) return true;
// If Raw Intuition can be used and there are more than 2 hostiles in range or SoloIntuition Config Option is checked, use it.
if (RawIntuitionPvE.CanUse(out act, onLastAbility: true) && (RawSingleTargets || NumberOfHostilesInRange > 2)) return true;

// If the player's Bloodwhetting or Raw Intuition status will not end in the next GCD, don't use any defensive abilities.
if (!Player.WillStatusEndGCD(0, 0, true, StatusID.Bloodwhetting, StatusID.RawIntuition)) return false;
Expand Down