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/1732/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 63e4996 + 7002487 commit 753924e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
17 changes: 13 additions & 4 deletions XIVSlothCombo/Combos/CustomComboPreset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,8 @@ public enum CustomComboPreset

[ParentCombo(DNC_ST_Adv_Flourish)]
[ConflictingCombos(DNC_ST_Adv_SS_Hold)]
[CustomComboInfo("Force Triple Weave for alignment", "Forces a triple weave of Flourish and Fan Dance 3 + 4 during non-opener burst windows." + "\nFixes SS/FM drift where you use a gcd when SS/FM is on a 0.5sec CD.", DNC.JobID, 1)]
[CustomComboInfo("Force Triple Weave for alignment", "Forces a triple weave of Flourish and Fan Dance 3 + 4 during non-opener burst windows." +
"\nFixes SS/FM drift where you use a gcd when SS/FM is on a 0.5sec CD.", DNC.JobID, 1)]
DNC_ST_Adv_Flourish_ForcedTripleWeave = 4088,

[ParentCombo(DNC_ST_AdvancedMode)]
Expand All @@ -988,15 +989,22 @@ public enum CustomComboPreset

[ParentCombo(DNC_ST_AdvancedMode)]
[CustomComboInfo("Improvisation Option", "Includes Improvisation in the rotation when available." +
"\nWill not use while under Technical Finish", DNC.JobID, 9)]
"\nWill not use while under Technical Finish", DNC.JobID, 9)]
DNC_ST_Adv_Improvisation = 4060,

[ParentCombo(DNC_ST_AdvancedMode)]
[CustomComboInfo("Tillana Option", "Includes Tillana in the rotation.", DNC.JobID, 10)]
DNC_ST_Adv_Tillana = 4092,

[ParentCombo(DNC_ST_Adv_Tillana)]
[CustomComboInfo("Favor over Esprit Option", "Will perform Tillana over Saber or Dance of the Dawn, even if above 50 Esprit." +
"\nCan prevent Tillana from drifting out of burst windows." +
"\nShould be used with Saber Dance's Esprit slider being a value above 50.", DNC.JobID, 1)]
DNC_ST_Adv_TillanaOverEsprit = 4094,

[ParentCombo(DNC_ST_AdvancedMode)]
[CustomComboInfo("Saber Dance Option", "Includes Saber Dance in the rotation when at or over the Esprit threshold.", DNC.JobID, 11)]
[CustomComboInfo("Saber Dance Option", "Includes Saber Dance in the rotation when at or over the Esprit threshold." +
"\n(And to prevent overcapping while under Technical Finish)", DNC.JobID, 11)]
DNC_ST_Adv_SaberDance = 4063,

[ParentCombo(DNC_ST_Adv_SaberDance)]
Expand Down Expand Up @@ -1071,7 +1079,8 @@ public enum CustomComboPreset
DNC_AoE_Adv_Tillana = 4101,

[ParentCombo(DNC_AoE_AdvancedMode)]
[CustomComboInfo("Saber Dance Option", "Includes Saber Dance in the AoE rotation when at or over the Esprit threshold.", DNC.JobID, 10)]
[CustomComboInfo("Saber Dance Option", "Includes Saber Dance in the AoE rotation when at or over the Esprit threshold." +
"\n(And to prevent overcapping while under Technical Finish)", DNC.JobID, 10)]
DNC_AoE_Adv_SaberDance = 4082,

[ParentCombo(DNC_AoE_Adv_SaberDance)]
Expand Down
9 changes: 6 additions & 3 deletions XIVSlothCombo/Combos/PvE/DNC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -506,16 +506,19 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
(GetCooldownRemainingTime(TechnicalStep) > 5 ||
IsOffCooldown(TechnicalStep)) && // Tech is up
(gauge.Esprit >= Config.DNC_ST_Adv_SaberThreshold || // above esprit threshold use
(HasEffect(Buffs.TechnicalFinish) && gauge.Esprit >= 50) || // will overcap with Tillana if not used
(HasEffect(Buffs.TechnicalFinish) && // will overcap with Tillana if not used
IsNotEnabled(CustomComboPreset.DNC_ST_Adv_TillanaOverEsprit) &&
gauge.Esprit >= 50) ||
(GetBuffRemainingTime(Buffs.DanceOfTheDawnReady) < 5 && gauge.Esprit >= 50))) // emergency use
return OriginalHook(DanceOfTheDawn);

// ST Saber Dance (Emergency Use)
if (IsEnabled(CustomComboPreset.DNC_ST_Adv_SaberDance) &&
LevelChecked(SaberDance) &&
(gauge.Esprit >= Config.DNC_ST_Adv_SaberThreshold || // above esprit threshold use
(HasEffect(Buffs.TechnicalFinish) && gauge.Esprit >= 50)) && // will overcap with Tillana if not used
ActionReady(SaberDance))
(HasEffect(Buffs.TechnicalFinish) && // will overcap with Tillana if not used
IsNotEnabled(CustomComboPreset.DNC_ST_Adv_TillanaOverEsprit) &&
gauge.Esprit >= 50)))
return LevelChecked(DanceOfTheDawn) &&
HasEffect(Buffs.DanceOfTheDawnReady)
? OriginalHook(DanceOfTheDawn)
Expand Down

0 comments on commit 753924e

Please sign in to comment.