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 #76 from FFXIV-CombatReborn/War-CD-Fix
Browse files Browse the repository at this point in the history
Solo Cooldown Bool
  • Loading branch information
Toshi authored May 9, 2024
2 parents 0b7b772 + 6cd35b4 commit 511ae79
Showing 1 changed file with 5 additions and 2 deletions.
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

0 comments on commit 511ae79

Please sign in to comment.