diff --git a/XIVComboExpanded/Combos/VPR.cs b/XIVComboExpanded/Combos/VPR.cs index 3c4a8abc..fa6d5e0f 100644 --- a/XIVComboExpanded/Combos/VPR.cs +++ b/XIVComboExpanded/Combos/VPR.cs @@ -189,7 +189,27 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim IsCooldownUsable(VPR.Vicewinder) && IsOriginal(VPR.SerpentsTail)) return VPR.Vicewinder; - if (IsEnabled(CustomComboPreset.ViperAutoSteelReavingFeature) && OriginalHook(VPR.SteelFangs) == VPR.SteelFangs) + if (IsEnabled(CustomComboPreset.ViperAutoFangBiteFeature)) + { + if (OriginalHook(VPR.SteelFangs) == VPR.HindstingStrike) + { + if (HasEffect(VPR.Buffs.HindsbaneVenom)) + return VPR.HindsbaneFang; + if (HasEffect(VPR.Buffs.HindstungVenom)) + return VPR.HindstingStrike; + } + + if (OriginalHook(VPR.SteelFangs) == VPR.FlankstingStrike) + { + if (HasEffect(VPR.Buffs.FlanksbaneVenom)) + return VPR.FlanksbaneFang; + if (HasEffect(VPR.Buffs.FlankstungVenom)) + return VPR.FlankstingStrike; + } + } + + if (IsEnabled(CustomComboPreset.ViperAutoSteelReavingFeature) && + OriginalHook(VPR.SteelFangs) == VPR.SteelFangs) return HasEffect(VPR.Buffs.HonedReavers) ? VPR.ReavingFangs : VPR.SteelFangs; } @@ -266,7 +286,19 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim IsCooldownUsable(VPR.VicePit) && IsOriginal(VPR.SerpentsTail)) return VPR.VicePit; - if (IsEnabled(CustomComboPreset.ViperAutoSteelReavingFeature) && OriginalHook(VPR.SteelMaw) == VPR.SteelMaw) + if (IsEnabled(CustomComboPreset.ViperAutoFangBiteFeature)) + { + if (OriginalHook(VPR.SteelMaw) == VPR.JaggedMaw) + { + if (HasEffect(VPR.Buffs.GrimhuntersVenom)) + return VPR.JaggedMaw; + if (HasEffect(VPR.Buffs.GrimskinsVenom)) + return VPR.BloodiedMaw; + } + } + + if (IsEnabled(CustomComboPreset.ViperAutoSteelReavingFeature) && + OriginalHook(VPR.SteelMaw) == VPR.SteelMaw) return HasEffect(VPR.Buffs.HonedReavers) ? VPR.ReavingMaw : VPR.SteelMaw; } diff --git a/XIVComboExpanded/CustomComboPreset.cs b/XIVComboExpanded/CustomComboPreset.cs index da8671b6..09d30d51 100644 --- a/XIVComboExpanded/CustomComboPreset.cs +++ b/XIVComboExpanded/CustomComboPreset.cs @@ -2311,17 +2311,23 @@ public enum CustomComboPreset // ==================================================================================== #region VIPER - [SectionCombo("Standard Combos")] - [IconsCombo([VPR.SteelFangs, VPR.ReavingFangs, UTL.ArrowLeft, VPR.DeathRattle, UTL.Blank, VPR.SteelMaw, VPR.ReavingMaw, UTL.ArrowLeft, VPR.LastLash])] - [CustomComboInfo("Serpent's Fang Feature", "Replace Steel Fangs, Reaving Fangs, Steel Maw, and Reaving Maw with Serpent's Tail after finishing a combo.", VPR.JobID)] - ViperSteelTailFeature = 4101, - [SectionCombo("Standard Combos")] [IconsCombo([VPR.SteelFangs, UTL.Cycle, VPR.ReavingFangs, UTL.Blank, VPR.SteelMaw, UTL.Cycle, VPR.ReavingMaw])] [AccessibilityCustomCombo] [CustomComboInfo("Auto Steel Reaving", "Replace Steel Fangs/Reaving Fangs and Steel Maw/Reaving Maw with whichever is currently empowered. Only affects the first combo hit.", VPR.JobID)] ViperAutoSteelReavingFeature = 4124, + [SectionCombo("Standard Combos")] + [IconsCombo([VPR.HindstingStrike, VPR.HindsbaneFang, VPR.FlanksbaneFang, VPR.FlankstingStrike, UTL.Idea, UTL.Blank, VPR.JaggedMaw, VPR.BloodiedMaw, UTL.Idea])] + [AccessibilityCustomCombo] + [CustomComboInfo("Auto Fang/Bite", "Replace Steel Fangs/Reaving Fangs and Steel Maw/Reaving Maw with whichever of the two available 3rd combo hits is currently empowered. Only affects the third combo hit.\n\nNOTE: This means that, for example, rather than Steel Fangs having Hindsting Strike and Reaving Fangs having Hindsbane Fang, both will have whichever of those two is currently empowered. If neither is empowered, they'll have whatever they normally have for the 3rd combo hit.", VPR.JobID)] + ViperAutoFangBiteFeature = 4125, + + [SectionCombo("Standard Combos")] + [IconsCombo([VPR.SteelFangs, VPR.ReavingFangs, UTL.ArrowLeft, VPR.DeathRattle, UTL.Blank, VPR.SteelMaw, VPR.ReavingMaw, UTL.ArrowLeft, VPR.LastLash])] + [CustomComboInfo("Serpent's Fang Feature", "Replace Steel Fangs, Reaving Fangs, Steel Maw, and Reaving Maw with Serpent's Tail after finishing a combo.", VPR.JobID)] + ViperSteelTailFeature = 4101, + [SectionCombo("Vice Combos")] [IconsCombo([VPR.SteelFangs, VPR.ReavingFangs, VPR.SteelMaw, VPR.ReavingMaw, UTL.ArrowLeft, VPR.HuntersCoil, VPR.SwiftskinsCoil, VPR.HuntersDen, VPR.SwiftskinsDen])] [ExpandedCustomCombo]