diff --git a/XIVSlothCombo/Combos/CustomComboPreset.cs b/XIVSlothCombo/Combos/CustomComboPreset.cs index a36a4d29f..8bed116d8 100644 --- a/XIVSlothCombo/Combos/CustomComboPreset.cs +++ b/XIVSlothCombo/Combos/CustomComboPreset.cs @@ -2740,6 +2740,10 @@ public enum CustomComboPreset [CustomComboInfo("Swiftcast Option ", $"Adds Swiftcast to the combo while moving.", PCT.JobID)] PCT_ST_AdvancedMode_SwitfcastOption = 20032, + [ParentCombo(PCT_ST_AdvancedMode)] + [CustomComboInfo("Swiftcast Motifs Option ", $"Use swiftcast for motifs.", PCT.JobID)] + PCT_ST_AdvancedMode_SwiftMotifs = 20035, + [ParentCombo(PCT_ST_AdvancedMode)] [CustomComboInfo("Blizzard in Cyan Option", $"Adds Blizzard in Cyan to the combo.", PCT.JobID)] PCT_ST_AdvancedMode_BlizzardInCyan = 20033, @@ -2748,7 +2752,7 @@ public enum CustomComboPreset [CustomComboInfo("Lucid Dreaming Option", $"Adds Lucid Dreaming to the combo.", PCT.JobID)] PCT_ST_AdvancedMode_LucidDreaming = 20034, - // Last value for ST = 20034 + // Last value for ST = 20035 #endregion #region AoE diff --git a/XIVSlothCombo/Combos/PvE/PCT/PCT.cs b/XIVSlothCombo/Combos/PvE/PCT/PCT.cs index 5ca17c329..86ae5e2c1 100644 --- a/XIVSlothCombo/Combos/PvE/PCT/PCT.cs +++ b/XIVSlothCombo/Combos/PvE/PCT/PCT.cs @@ -86,7 +86,7 @@ protected override uint Invoke(uint actionID, uint lastComboActionID, float comb { if (actionID is FireInRed) { - var gauge = GetJobGauge(); + PCTGauge gauge = GetJobGauge(); bool canWeave = CanSpellWeave(ActionWatching.LastSpell) || CanSpellWeave(actionID); // Variant Cure @@ -348,13 +348,12 @@ protected override uint Invoke(uint actionID, uint lastComboActionID, float comb { if (actionID is FireInRed) { - var gauge = GetJobGauge(); + PCTGauge gauge = GetJobGauge(); bool canWeave = CanSpellWeave(ActionWatching.LastSpell) || CanSpellWeave(actionID); int creatureStop = PluginConfiguration.GetCustomIntValue(Config.PCT_ST_CreatureStop); int landscapeStop = PluginConfiguration.GetCustomIntValue(Config.PCT_ST_LandscapeStop); int weaponStop = PluginConfiguration.GetCustomIntValue(Config.PCT_ST_WeaponStop); - // Variant Cure if (IsEnabled(CustomComboPreset.PCT_Variant_Cure) && IsEnabled(Variant.VariantCure) && @@ -494,7 +493,8 @@ protected override uint Invoke(uint actionID, uint lastComboActionID, float comb } // Swiftcast Motifs - if (HasEffect(All.Buffs.Swiftcast)) + if (IsEnabled(CustomComboPreset.PCT_ST_AdvancedMode_SwiftMotifs) && + HasEffect(All.Buffs.Swiftcast)) { if (!gauge.CreatureMotifDrawn && CreatureMotif.LevelChecked() && !HasEffect(Buffs.StarryMuse) && GetTargetHPPercent() > creatureStop) return OriginalHook(CreatureMotif); @@ -653,14 +653,14 @@ protected override uint Invoke(uint actionID, uint lastComboActionID, float comb if (!InCombat() || InCombat() && CurrentTarget == null) - { - if (CreatureMotif.LevelChecked() && !gauge.CreatureMotifDrawn) - return OriginalHook(CreatureMotif); - if (WeaponMotif.LevelChecked() && !gauge.WeaponMotifDrawn && !HasEffect(Buffs.HammerTime)) - return OriginalHook(WeaponMotif); - if (LandscapeMotif.LevelChecked() && !gauge.LandscapeMotifDrawn && !HasEffect(Buffs.StarryMuse)) - return OriginalHook(LandscapeMotif); - } + { + if (CreatureMotif.LevelChecked() && !gauge.CreatureMotifDrawn) + return OriginalHook(CreatureMotif); + if (WeaponMotif.LevelChecked() && !gauge.WeaponMotifDrawn && !HasEffect(Buffs.HammerTime)) + return OriginalHook(WeaponMotif); + if (LandscapeMotif.LevelChecked() && !gauge.LandscapeMotifDrawn && !HasEffect(Buffs.StarryMuse)) + return OriginalHook(LandscapeMotif); + } // General Weaves