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

Commit

Permalink
Merge pull request #1834 from Akechi-kun/GNB
Browse files Browse the repository at this point in the history
[GNB] fixes/adjustments
  • Loading branch information
Taurenkey authored Nov 17, 2024
2 parents c21aa44 + b2fa26f commit 2496eb7
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions XIVSlothCombo/Combos/PvE/GNB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
if (ActionReady(DangerZone) && !LevelChecked(SonicBreak) && HasEffect(Buffs.NoMercy) || nmCD < 30) //subLv54
return OriginalHook(DangerZone);
}

//if all else fails
if (ActionReady(DoubleDown))
return DoubleDown;
}

//GnashingFang
Expand All @@ -257,6 +261,10 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
|| (!LevelChecked(ReignOfBeasts) && !LevelChecked(DoubleDown) && !LevelChecked(Bloodfest) && JustUsed(NoMercy, 3f)) //<=Lv79 use
|| (nmCD > GCD * 7 && nmCD < GCD * 14)) //30s use
return GnashingFang;

//if all else fails
if (HasEffect(Buffs.NoMercy) && ActionReady(GnashingFang))
return GnashingFang;
}

//ReadyToReign combo
Expand Down Expand Up @@ -493,6 +501,10 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
if (IsEnabled(CustomComboPreset.GNB_ST_BlastingZone) && ActionReady(DangerZone) && !LevelChecked(SonicBreak) && HasEffect(Buffs.NoMercy) || nmCD < 30) //subLv54
return OriginalHook(DangerZone);
}

//if all else fails
if (ActionReady(DoubleDown))
return DoubleDown;
}

//GnashingFang
Expand All @@ -508,6 +520,10 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
|| (!LevelChecked(ReignOfBeasts) && !LevelChecked(DoubleDown) && !LevelChecked(Bloodfest) && JustUsed(NoMercy, 3f)) //<=Lv79 use
|| (nmCD > GCD * 7 && nmCD < GCD * 14)) //30s use
return GnashingFang;

//if all else fails
if (HasEffect(Buffs.NoMercy) && ActionReady(GnashingFang))
return GnashingFang;
}

//ReadyToReign combo
Expand Down Expand Up @@ -723,6 +739,10 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
if (IsEnabled(CustomComboPreset.GNB_GF_Zone) && ActionReady(DangerZone) && !LevelChecked(SonicBreak) && HasEffect(Buffs.NoMercy) || nmCD < 30) //subLv54
return OriginalHook(DangerZone);
}

//if all else fails
if (ActionReady(DoubleDown))
return DoubleDown;
}

//Gnashing Fang
Expand All @@ -738,6 +758,10 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
|| (!LevelChecked(ReignOfBeasts) && !LevelChecked(DoubleDown) && !LevelChecked(Bloodfest) && JustUsed(NoMercy, 3f)) //<=Lv79 use
|| (nmCD > GCD * 7 && nmCD < GCD * 14)) //30s use
return GnashingFang;

//if all else fails
if (HasEffect(Buffs.NoMercy) && ActionReady(GnashingFang))
return GnashingFang;
}

//Reign combo
Expand Down Expand Up @@ -841,8 +865,8 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
}
//FatedCircle - if not unlocked, use BurstStrike
if (Ammo > 0 && LevelChecked(FatedCircle) &&
(HasEffect(Buffs.NoMercy) && !ActionReady(DoubleDown) && GunStep == 0) || //use when under NM after DD & ignores GF
(bfCD < 6)) // Bloodfest prep
((HasEffect(Buffs.NoMercy) && !ActionReady(DoubleDown) && GunStep == 0) || //use when under NM after DD & ignores GF
(bfCD <= (level >= 88 ? GCD * 3 : GCD * 2)))) // Bloodfest prep
return FatedCircle;
if (Ammo > 0 && !LevelChecked(FatedCircle) && LevelChecked(BurstStrike) &&
(HasEffect(Buffs.NoMercy) && !ActionReady(DoubleDown) && GunStep == 0)) //use when under NM after DD & ignores GF
Expand Down Expand Up @@ -941,11 +965,12 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
//FatedCircle - if not unlocked, use BurstStrike
if (Ammo > 0 && LevelChecked(FatedCircle) &&
((IsEnabled(CustomComboPreset.GNB_AoE_FatedCircle) && HasEffect(Buffs.NoMercy) && !ActionReady(DoubleDown) && GunStep == 0) || //use when under NM after DD & ignores GF
(IsEnabled(CustomComboPreset.GNB_AoE_Bloodfest) && bfCD < 6))) // Bloodfest prep
(IsEnabled(CustomComboPreset.GNB_AoE_Bloodfest) && bfCD <= (level >= 88 ? GCD * 3 : GCD * 2)))) // Bloodfest prep
return FatedCircle;
if (IsEnabled(CustomComboPreset.GNB_AoE_noFatedCircle) && Ammo > 0 && !LevelChecked(FatedCircle) && LevelChecked(BurstStrike) &&
(HasEffect(Buffs.NoMercy) && GunStep == 0)) // Bloodfest prep
return BurstStrike;

}

//1-2
Expand Down

0 comments on commit 2496eb7

Please sign in to comment.