diff --git a/XIVComboExpanded/Combos/NIN.cs b/XIVComboExpanded/Combos/NIN.cs index f523d088..8fa89fd2 100644 --- a/XIVComboExpanded/Combos/NIN.cs +++ b/XIVComboExpanded/Combos/NIN.cs @@ -21,6 +21,8 @@ public const uint Suiton = 2271, ArmorCrush = 3563, DreamWithinADream = 3566, + Hellfrog = 7401, + Bhavacakra = 7402, TenChiJin = 7403, HakkeMujinsatsu = 16488, Meisui = 16489, @@ -300,3 +302,21 @@ protected override uint Invoke(uint actionID, uint lastComboActionID, float comb return actionID; } } + +internal class NinjaFrogLevelSync : CustomCombo +{ + protected internal override CustomComboPreset Preset { get; } = CustomComboPreset.NinjaFrogLevelSyncFeature; + + protected override uint Invoke(uint actionID, uint lastComboActionID, float comboTime, byte level) + { + if (actionID == NIN.Bhavacakra) + { + if (level < NIN.Levels.Bhavacakra) + { + return NIN.Hellfrog; + } + } + + return actionID; + } +} diff --git a/XIVComboExpanded/CustomComboPreset.cs b/XIVComboExpanded/CustomComboPreset.cs index 8a946f5c..122bbd82 100644 --- a/XIVComboExpanded/CustomComboPreset.cs +++ b/XIVComboExpanded/CustomComboPreset.cs @@ -1347,6 +1347,12 @@ public enum CustomComboPreset [CustomComboInfo("Hide to Ninjutsu", "Replace Hide with Ninjutsu if any Mudra are active. Takes precedence over Hide to Mug/Dokumori.", NIN.JobID)] NinjaHideNinjutsuFeature = 3020, + [IconsCombo([NIN.Bhavacakra, UTL.ArrowLeft, NIN.Hellfrog])] + [SectionCombo("Level Synchronization")] + [ExpandedCustomCombo] + [CustomComboInfo("Bhavacakra to Hellfrog Level Sync", "Replace Bhavacakra with Hellfrog Medium when synced below 68.", NIN.JobID)] + NinjaFrogLevelSyncFeature = 3024, + #endregion // ==================================================================================== #region PALADIN