Skip to content

Commit

Permalink
Minor fix for DNC alt-dance combos
Browse files Browse the repository at this point in the history
The dance step combo now also becomes Tillana on both buttons if Standard Step's cooldown has at least two seconds, so it won't clip and drift.

If the Alternate Dance: Technical Step combo is not enabled, Tech Step will become Tillana as normal. Even with neither alt-dance combo active, Standard Step will become Tillana when it has at least two seconds of cooldown left. If the Alternate Dance: Technical Step combo IS enabled, Tillana will ONLY be accessible when Standard Step has at least two seconds of cooldown remaining.
  • Loading branch information
PrincessRTFM committed Mar 30, 2024
1 parent c72d5d7 commit 372fa0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion XIVComboVX/Combos/DNC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,13 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim

if (level >= DNC.Levels.TechnicalStep) {

if (SelfHasEffect(DNC.Buffs.FlourishingFinish) && GetCooldown(DNC.StandardStep).CooldownRemaining >= 2)
return DNC.Tillana;

if (IsEnabled(CustomComboPreset.DancerDanceStepComboSmartStandard) && CanUse(DNC.TechnicalStep) && GetCooldown(DNC.StandardStep).CooldownRemaining > 3)
return DNC.TechnicalStep;

if (IsEnabled(CustomComboPreset.DancerDanceStepComboSmartTechnical) && !CanUse(DNC.TechnicalStep))
if (IsEnabled(CustomComboPreset.DancerDanceStepComboSmartTechnical) && !CanUse(DNC.TechnicalStep) && CanUse(DNC.StandardStep))
return DNC.StandardStep;

}
Expand Down
4 changes: 2 additions & 2 deletions XIVComboVX/CustomComboPreset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,11 @@ public enum CustomComboPreset {
DancerDanceStepCombo = 3805,

[ParentPreset(DancerDanceStepCombo)]
[CustomComboInfo("Smart Dance: Standard Step", "Also change Standard Step into Technical Step when ready and Standard Step's cooldown has more than 3 seconds left.", DNC.JobID)]
[CustomComboInfo("Alternative Dance: Standard Step", "Also change Standard Step into Technical Step when ready and Standard Step's cooldown has more than 3 seconds left.", DNC.JobID)]
DancerDanceStepComboSmartStandard = 3824,

[ParentPreset(DancerDanceStepCombo)]
[CustomComboInfo("Smart Dance: Technical Step", "Also change Technical Step into Standard Step when Technical Step is unavailable or on cooldown.", DNC.JobID)]
[CustomComboInfo("Alternative Dance: Technical Step", "Also change Technical Step into Standard Step when Technical Step is unavailable or on cooldown.", DNC.JobID)]
DancerDanceStepComboSmartTechnical = 3825,

[ParentPreset(DancerDanceStepCombo)]
Expand Down
2 changes: 1 addition & 1 deletion XIVComboVX/XIVComboVX.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Product>XIVComboVX</Product>
<Authors>attick, daemitus, VariableVixen</Authors>
<Version>9.19.0</Version>
<Version>9.19.1</Version>
<Description>This plugin condenses various abilities onto single buttons.</Description>
<PackageProjectUrl>https://github.com/PrincessRTFM/XIVComboPlugin</PackageProjectUrl>
<Copyright>Copyleft attick 2020 baybeeee</Copyright>
Expand Down

0 comments on commit 372fa0c

Please sign in to comment.