Skip to content

Commit 7601ca5

Browse files
authored
Merge pull request #817 from FFXIV-CombatReborn/goddamnsnakes
Adjustment to Viper Rework
2 parents 90bb05a + 92e8776 commit 7601ca5

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

BasicRotations/Melee/VPR_Default.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@ protected override bool GeneralGCD(out IAction? act)
300300
|| !BurstUncoiledFuryHold)
301301
&& SerpentsIrePvE.Cooldown.JustUsedAfter(30)
302302
&& !HasReadyToReawaken
303-
&& NoAbilityReady)
303+
&& NoAbilityReady
304+
&& !WillSwiftEnd
305+
&& !WillHunterEnd)
304306
{
305307
if (UncoiledFuryPvE.CanUse(out act, usedUp: true))
306308
{
@@ -312,13 +314,13 @@ protected override bool GeneralGCD(out IAction? act)
312314
////AOE Dread Combo
313315
if (PitActive)
314316
{
315-
if (IsSwift && Player.WillStatusEndGCD(2, 0, true, StatusID.Swiftscaled))
317+
if (WillSwiftEnd)
316318
{
317319
if (SwiftskinsDenPvE.CanUse(out act, skipComboCheck: true, skipAoeCheck: true))
318320
return true;
319321
}
320322

321-
if (IsHunter && Player.WillStatusEndGCD(2, 0, true, StatusID.HuntersInstinct))
323+
if (WillHunterEnd)
322324
{
323325
if (HuntersDenPvE.CanUse(out act, skipComboCheck: true, skipAoeCheck: true))
324326
return true;

RotationSolver.Basic/Rotations/Basic/ViperRotation.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ public override void DisplayStatus()
158158
ImGui.Text("UncoiledAbilityReady: " + UncoiledAbilityReady.ToString());
159159
ImGui.Spacing();
160160
ImGui.Text("HasHunterAndSwift: " + HasHunterAndSwift.ToString());
161+
ImGui.Text("WillSwiftEnd: " + WillSwiftEnd.ToString());
162+
ImGui.Text("WillHunterEnd: " + WillHunterEnd.ToString());
161163
ImGui.Text("IsSwift: " + IsSwift.ToString());
162164
ImGui.Text("SwiftTime: " + SwiftTime.ToString());
163165
ImGui.Text("IsHunter: " + IsHunter.ToString());
@@ -192,6 +194,16 @@ public override void DisplayStatus()
192194
/// </summary>
193195
public static bool HasHunterAndSwift => IsHunter && IsSwift;
194196

197+
/// <summary>
198+
///
199+
/// </summary>
200+
public static bool WillSwiftEnd => IsSwift && Player.WillStatusEndGCD(2, 0, true, StatusID.Swiftscaled);
201+
202+
/// <summary>
203+
///
204+
/// </summary>
205+
public static bool WillHunterEnd => IsHunter && Player.WillStatusEndGCD(2, 0, true, StatusID.HuntersInstinct);
206+
195207
/// <summary>
196208
/// Indicates if the player has Swiftscaled.
197209
/// </summary>

0 commit comments

Comments
 (0)