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

Commit

Permalink
Mch Wildfire further fix
Browse files Browse the repository at this point in the history
Fix for Wildfire to ALWAYS YEP SUPER DUPER ALWAYS cast hypercharge if you wildfire. (Thanks Richieer)
  • Loading branch information
Tykku committed Apr 12, 2024
1 parent bf6194c commit 4d8a969
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions BasicRotations/Ranged/MCH_Beta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ protected override bool EmergencyAbility(IAction nextGCD, out IAction? act)
// Logic for using attack abilities outside of GCD, focusing on burst windows and cooldown management.
protected override bool AttackAbility(out IAction? act)
{
if (Player.HasStatus(true, StatusID.Wildfire_1946))
{
return HyperchargePvE.CanUse(out act, skipClippingCheck: true);
}

if (IsBurst)
{
if (UseBurstMedicine(out act)) return true;
Expand Down Expand Up @@ -133,12 +138,11 @@ protected override bool GeneralGCD(out IAction? act)
// These methods simplify the main logic by encapsulating specific checks related to abilities' cooldowns and prerequisites.
private bool CanUseRookAutoturretPvE(out IAction? act)
{
act = null;

//
if ((AirAnchorPvE.EnoughLevel && (!AirAnchorPvE.Cooldown.IsCoolingDown || AirAnchorPvE.Cooldown.ElapsedAfter(18))) ||
(!AirAnchorPvE.EnoughLevel && (!HotShotPvE.Cooldown.IsCoolingDown || HotShotPvE.Cooldown.ElapsedAfter(18))))

if (!AirAnchorPvE.Cooldown.IsCoolingDown || AirAnchorPvE.Cooldown.ElapsedAfter(18) ||
(!AirAnchorPvE.EnoughLevel && !HotShotPvE.Cooldown.IsCoolingDown || HotShotPvE.Cooldown.ElapsedAfter(18)))
{
act = null;
return false;
}

Expand Down

0 comments on commit 4d8a969

Please sign in to comment.