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

Commit

Permalink
Merge commit 'refs/pull/1738/head' of https://github.com/Nik-Potokar/…
Browse files Browse the repository at this point in the history
  • Loading branch information
Taurenkey committed Aug 22, 2024
2 parents b0b516e + 94fdc6c commit a840912
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 110 deletions.
38 changes: 37 additions & 1 deletion XIVSlothCombo/Combos/JobHelpers/MCH.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using ECommons.DalamudServices;
using Dalamud.Game.ClientState.JobGauge.Types;
using ECommons.DalamudServices;
using FFXIVClientStructs.FFXIV.Client.Game;
using System.Linq;
using XIVSlothCombo.Combos.JobHelpers.Enums;
using XIVSlothCombo.Data;
using static XIVSlothCombo.Combos.PvE.MCH;
Expand Down Expand Up @@ -270,6 +272,40 @@ public unsafe static bool IsComboExpiring(float Times)

else return false;
}

public static bool UseQueen(MCHGauge gauge)
{
int BSUsed = ActionWatching.CombatActions.Count(x => x == BarrelStabilizer);

if (!ActionWatching.HasDoubleWeaved() && CanWeave(OriginalHook(SplitShot)) &&
!gauge.IsOverheated && !HasEffect(Buffs.Wildfire) && !JustUsed(OriginalHook(Heatblast)) &&
LevelChecked(OriginalHook(RookAutoturret)) && !gauge.IsRobotActive && gauge.Battery >= 50 &&
((LevelChecked(FullMetalField) && !JustUsed(FullMetalField)) || !LevelChecked(FullMetalField)))
{
//1min
if (BSUsed == 1 & gauge.Battery >= 90)
return true;

//even mins
if (BSUsed >= 2 && gauge.Battery >= 100)
return true;

//odd mins 1st queen
if (BSUsed >= 2 && gauge.Battery >= 50 &&
GetCooldownRemainingTime(BarrelStabilizer) is >= 30 and <= 65)
return true;

//odd mins 2nd queen
if (BSUsed >= 2 && gauge.Battery >= 60 &&
GetCooldownRemainingTime(BarrelStabilizer) is >= 10 and <= 30)
return true;

if (!LevelChecked(BarrelStabilizer))
return true;
}

return false;
}
}
}
}
Loading

0 comments on commit a840912

Please sign in to comment.