Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added switch for Riddle of Fire usage #489

Merged
merged 1 commit into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
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
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