Skip to content

Commit

Permalink
Merge pull request #489 from FFXIV-CombatReborn/RiddleOfFire
Browse files Browse the repository at this point in the history
Added switch for Riddle of Fire usage
  • Loading branch information
LTS-FFXIV authored Dec 24, 2024
2 parents b5c95e8 + 928ea3e commit aaab732
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
37 changes: 35 additions & 2 deletions BasicRotations/Melee/MNK_Default.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
using System.ComponentModel;
using static DefaultRotations.Magical.SMN_Default;

namespace DefaultRotations.Melee;

[Rotation("Default", CombatType.PvE, GameVersion = "7.15", Description = "Uses Lunar Solar Opener from The Balance")]
Expand All @@ -7,6 +10,14 @@ namespace DefaultRotations.Melee;
public sealed class MNK_Default : MonkRotation
{
#region Config Options

public enum RiddleOfFireFirst : byte
{
[Description("Brotherhood")] Brotherhood,

[Description("Perfect Balance")] PerfectBalance,
}

[RotationConfig(CombatType.PvE, Name = "Use Form Shift")]
public bool AutoFormShift { get; set; } = true;

Expand All @@ -21,6 +32,9 @@ public sealed class MNK_Default : MonkRotation

[RotationConfig(CombatType.PvE, Name = "Enable TEA Checker.")]
public bool EnableTEAChecker { get; set; } = false;

[RotationConfig(CombatType.PvE, Name = "Use Riddle of Fire after this ability")]
public RiddleOfFireFirst ROFFirst { get; set; } = RiddleOfFireFirst.Brotherhood;
#endregion

#region Countdown Logic
Expand Down Expand Up @@ -58,12 +72,30 @@ protected override bool EmergencyAbility(IAction nextGCD, out IAction? act)
if (AutoPB_Boss && InCombat && CombatElapsedLess(3) && PerfectBalancePvE.CanUse(out act, usedUp: true)) return true;
//if (CombatElapsedLessGCD(1) && TheForbiddenChakraPvE.CanUse(out act)) return true; // if it weaves one day in the future...

// need this to connect the first three buffs
if (IsLastAbility(true, BrotherhoodPvE) && RiddleOfFirePvE.CanUse(out act)) return true; // Riddle Of Fire
if (RiddleOfFirePvE.CanUse(out _))
{
switch (ROFFirst)
{
case RiddleOfFireFirst.Brotherhood:
default:
if (IsLastAbility(true, BrotherhoodPvE) && RiddleOfFirePvE.CanUse(out act)) return true;
break;

case RiddleOfFireFirst.PerfectBalance:
if (IsLastAbility(true, PerfectBalancePvE) && RiddleOfFirePvE.CanUse(out act)) return true;
break;
}
}

return base.EmergencyAbility(nextGCD, out act);
}

protected override bool GeneralAbility(IAction nextGCD, out IAction? act)
{
if (Player.WillStatusEnd(2.5f, true, StatusID.EarthsRumination) && EarthsReplyPvE.CanUse(out act)) return true;
return base.GeneralAbility(nextGCD, out act);
}

[RotationDesc(ActionID.ThunderclapPvE)]
protected override bool MoveForwardAbility(IAction nextGCD, out IAction? act)
{
Expand All @@ -81,6 +113,7 @@ protected override bool DefenseAreaAbility(IAction nextGCD, out IAction? act)
[RotationDesc(ActionID.MantraPvE)]
protected override bool HealAreaAbility(IAction nextGCD, out IAction? act)
{
if (EarthsReplyPvE.CanUse(out act)) return true;
if (MantraPvE.CanUse(out act)) return true;
return base.HealAreaAbility(nextGCD, out act);
}
Expand Down
2 changes: 1 addition & 1 deletion ECommons

0 comments on commit aaab732

Please sign in to comment.