Skip to content

Commit

Permalink
Stance strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
lazylemo authored and awgil committed Dec 28, 2023
1 parent 46ee211 commit 24bcfc0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion BossMod/Autorotation/GNB/GNBRotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,13 @@ public enum SpecialAction : uint
None = 0, // don't use any special actions

[PropertyDisplay("LB3", 0x8000ff00)]
LB3, // use LB3 if available
LB3 = 1, // use LB3 if available

[PropertyDisplay("Stance ON", 0x80ff00ff)]
StanceOn = 1, // use LB3 if available

[PropertyDisplay("Stance ON", 0x80c0c000)]
StanceOff = 1, // use LB3 if available
}

public GaugeUse GaugeStrategy; // how are we supposed to handle gauge
Expand Down Expand Up @@ -436,6 +442,12 @@ public static ActionID GetNextBestOGCD(State state, Strategy strategy, float dea
if (wantOnslaught && state.CanWeave(state.CD(CDGroup.RoughDivide), 0.6f, deadline) && state.CD(CDGroup.GnashingFang) > 2.5)
return ActionID.MakeSpell(AID.RoughDivide);

if (strategy.SpecialActionUse == Strategy.SpecialAction.StanceOn && state.CanWeave(state.CD(CDGroup.RoyalGuard), 0.6f, deadline) && state.GunComboStep == 0 && !state.HaveTankStance)
return ActionID.MakeSpell(AID.RoyalGuard);

if (strategy.SpecialActionUse == Strategy.SpecialAction.StanceOff && state.CanWeave(state.CD(CDGroup.ReleaseRoyalGuard), 0.6f, deadline) && state.GunComboStep == 0 && state.HaveTankStance)
return ActionID.MakeSpell(AID.ReleaseRoyalGuard);

if (state.CanWeave(state.CD(CDGroup.Aurora) - 60, 0.6f, deadline) && state.AuroraLeft < state.GCD && state.CD(CDGroup.NoMercy) > 1 && state.CD(CDGroup.GnashingFang) > 1 && state.CD(CDGroup.SonicBreak) > 1 && state.CD(CDGroup.DoubleDown) > 1)
return ActionID.MakeSpell(AID.Aurora);

Expand Down

0 comments on commit 24bcfc0

Please sign in to comment.