Skip to content

Commit

Permalink
actual nm fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Akechi-kun committed Dec 26, 2024
1 parent 0199c12 commit 271d5c6
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions BossMod/Autorotation/akechi/AkechiGNB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public override void Execute(StrategyValues strategy, Actor? primaryTarget, floa
var ls = strategy.Option(Track.LightningShot); //Lightning Shot track
var lsStrat = ls.As<LightningShotStrategy>(); //Lightning Shot strategy
var hold = strategy.Option(Track.Cooldowns).As<CooldownStrategy>() == CooldownStrategy.Hold; //Determine if holding resources
var conserve = strategy.Option(Track.Cartridges).As<CartridgeStrategy>() == CartridgeStrategy.Conserve; //Determine if conserving cartridges
var conserve = cartStrat == CartridgeStrategy.Conserve; //Determine if conserving cartridges
#endregion

#endregion
Expand Down Expand Up @@ -875,11 +875,10 @@ private void QueueOGCD(AID aid, Actor? target, OGCDPriority prio, float basePrio
canNM && //No Mercy is available
GCD < 0.9f && //GCD is less than 0.9s
((Unlocked(AID.DoubleDown) && //Double Down is unlocked, indicating Lv90 or above
((bfCD is <= 90 and >= 30 && (Ammo >= 2 || (Ammo == 1 && ComboLastMove is AID.BrutalShell))) || //In Odd Window & conditions are met
(bfCD is not <= 90 and not >= 30 && Ammo < 3))) || //In Even Window & conditions are met
(((bfCD <= 90 && bfCD >= 30) && (Ammo >= 2 || (Ammo == 1 && ComboLastMove is AID.BrutalShell))) || //In Odd Window & conditions are met
(!(bfCD <= 90 && bfCD >= 30) && Ammo < 3))) || //In Even Window & conditions are met
(!Unlocked(AID.DoubleDown) && Unlocked(AID.Bloodfest) && //Double Down is not unlocked but Bloodfest is, indicating Lv80-89
Ammo >= 1 && //Ammo is 1 or more
bfCD is < 5 or 0) || //Bloodfest is ready or about to be
Ammo >= 1) || //Ammo is 1 or more
(!Unlocked(AID.Bloodfest) && canGF) || //Bloodfest is not unlocked but Gnashing Fang is, indicating Lv60-79
!Unlocked(AID.GnashingFang)), //Gnashing Fang is not unlocked, indicating Lv59 and below
NoMercyStrategy.Force => canNM, //Force No Mercy, regardless of correct weaving
Expand Down Expand Up @@ -1000,7 +999,9 @@ private void QueueOGCD(AID aid, Actor? target, OGCDPriority prio, float basePrio
In3y(target) && //Target in melee range
canBS && //Burst Strike is available
(hasNM || //No Mercy is active
nmCD < 1 && Ammo == 3), //No Mercy is almost ready and full carts
(!(bfCD is <= 90 and >= 30) &&
nmCD < 1 &&
Ammo == 3)), //No Mercy is almost ready and full carts
_ => false
};

Expand All @@ -1013,7 +1014,9 @@ private void QueueOGCD(AID aid, Actor? target, OGCDPriority prio, float basePrio
In5y(target) && //Target in range
canFC && //Fated Circle is available
(hasNM || //No Mercy is active
nmCD < 1 && Ammo == 3), //No Mercy is almost ready and full carts
(!(bfCD is <= 90 and >= 30) &&
nmCD < 1 &&
Ammo == 3)), //No Mercy is almost ready and full carts
_ => false
};

Expand Down

0 comments on commit 271d5c6

Please sign in to comment.