Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
MCH Beta Chainsaw Fix
Browse files Browse the repository at this point in the history
Fixes Chainsaw on MCH and adds prepull reassemble for first Air Anchor. Further opener optimizations to come
  • Loading branch information
Toshi committed Apr 7, 2024
1 parent b17961d commit 35df15b
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions BasicRotations/Ranged/MCH_Beta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ public sealed class MCH_Beta : MachinistRotation
// Defines logic for actions to take during the countdown before combat starts.
protected override IAction? CountDownAction(float remainTime)
{
if (remainTime < 2 && UseBurstMedicine(out var act)) return act;
if (remainTime < 2)
{
if (UseBurstMedicine(out var act)) return act;
}
if (remainTime < 5)
{
if (ReassemblePvE.CanUse(out var act)) return act;
}
return base.CountDownAction(remainTime);
}
#endregion
Expand Down Expand Up @@ -72,9 +79,9 @@ protected override bool AttackAbility(out IAction? act)
}
}

if (!WildfirePvE.Cooldown.WillHaveOneCharge(30) || (Heat == 100))
if (!CombatElapsedLess(12) && (!WildfirePvE.Cooldown.WillHaveOneCharge(30) || (Heat == 100)))
{
return (CanUseHyperchargePvE(out act));
if (!CombatElapsedLess(12) && CanUseHyperchargePvE(out act)) return true;
}
if (CanUseRookAutoturretPvE(out act)) return true;

Expand Down Expand Up @@ -148,9 +155,9 @@ private bool CanUseHyperchargePvE(out IAction? act)
//Cannot AOE
((!SpreadShotPvE.CanUse(out _))
&&
//Combat elapsed 12 seconds
(!CombatElapsedLess(12))
&&
////Combat elapsed 12 seconds
//(!CombatElapsedLess(12))
//&&
// AirAnchor Enough Level % AirAnchor
((AirAnchorPvE.EnoughLevel && AirAnchorPvE.Cooldown.WillHaveOneCharge(REST_TIME))
||
Expand Down

0 comments on commit 35df15b

Please sign in to comment.