Skip to content

Commit

Permalink
Merge pull request #271 from plivdev/master
Browse files Browse the repository at this point in the history
[FEATURE] RDM - Grand Impact deprioritize for verprocs
  • Loading branch information
MKhayle authored Jul 6, 2024
2 parents 39c5b93 + ecab61e commit 7478ad4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
25 changes: 14 additions & 11 deletions XIVComboExpanded/Combos/RDM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim

if (IsEnabled(CustomComboPreset.RedMageVerprocFeature))
{
if (HasEffect(RDM.Buffs.GrandImpactReady))
if (!IsEnabled(CustomComboPreset.RedMageVerprocGrandImpactDeprioritize) && HasEffect(RDM.Buffs.GrandImpactReady))
return RDM.GrandImpact;

if (HasEffect(RDM.Buffs.VerstoneReady))
Expand Down Expand Up @@ -355,7 +355,7 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim

if (IsEnabled(CustomComboPreset.RedMageVerprocFeature))
{
if (HasEffect(RDM.Buffs.GrandImpactReady))
if (!IsEnabled(CustomComboPreset.RedMageVerprocGrandImpactDeprioritize) && HasEffect(RDM.Buffs.GrandImpactReady))
return RDM.GrandImpact;

if (HasEffect(RDM.Buffs.VerfireReady))
Expand All @@ -372,7 +372,7 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim

internal class RedMageAcceleration : CustomCombo
{
protected internal override CustomComboPreset Preset { get; } = CustomComboPreset.RedMageAccelerationSwiftcastFeature;
protected internal override CustomComboPreset Preset { get; } = CustomComboPreset.RdmAny;

protected override uint Invoke(uint actionID, uint lastComboMove, float comboTime, byte level)
{
Expand All @@ -383,17 +383,20 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
if (IsEnabled(CustomComboPreset.RedMageAccelerationGrandImpactFeature) && HasEffect(RDM.Buffs.GrandImpactReady))
return RDM.GrandImpact;

if (IsEnabled(CustomComboPreset.RedMageAccelerationSwiftcastOption))
if (IsEnabled(CustomComboPreset.RedMageAccelerationSwiftcastFeature))
{
if (IsOffCooldown(RDM.Acceleration) && IsOffCooldown(ADV.Swiftcast))
return ADV.Swiftcast;
}
if (IsEnabled(CustomComboPreset.RedMageAccelerationSwiftcastOption))
{
if (IsOffCooldown(RDM.Acceleration) && IsOffCooldown(ADV.Swiftcast))
return ADV.Swiftcast;
}

if (IsOffCooldown(RDM.Acceleration))
return RDM.Acceleration;
if (IsOffCooldown(RDM.Acceleration))
return RDM.Acceleration;

if (IsOffCooldown(ADV.Swiftcast))
return ADV.Swiftcast;
if (IsOffCooldown(ADV.Swiftcast))
return ADV.Swiftcast;
}

return RDM.Acceleration;
}
Expand Down
4 changes: 4 additions & 0 deletions XIVComboExpanded/CustomComboPreset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,10 @@ public enum CustomComboPreset
[CustomComboInfo("Verstone/Verfire Feature", "Replace Verstone/Verfire with Jolt when no proc is available.", RDM.JobID)]
RedMageVerprocFeature = 3504,

[ParentCombo(RedMageVerprocFeature)]
[CustomComboInfo("Deprioritize Grand Impact", "After using Acceleration, prioritize using Verstone/Verfire over Grand Impact if both buffs are active.", RDM.JobID)]
RedMageVerprocGrandImpactDeprioritize = 3519,

[CustomComboInfo("Verstone/Verfire Plus Feature", "Replace Verstone/Verfire with Veraero/Verthunder when various instant-cast effects are active.", RDM.JobID)]
RedMageVerprocPlusFeature = 3505,

Expand Down

0 comments on commit 7478ad4

Please sign in to comment.