Skip to content

Commit 114f768

Browse files
authored
Merge pull request #973 from FFXIV-CombatReborn/bigboss
Adjusted VPR rotation to account for bosses without positionals, added additional VFX path tracking for tankbusters
2 parents 1f6f45f + b123a30 commit 114f768

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

RotationSolver.Basic/DataCenter.cs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,8 +1182,21 @@ public static bool IsCastingTankVfx()
11821182
{
11831183
return IsCastingVfx(VfxDataQueue, s =>
11841184
{
1185-
return Player.AvailableThreadSafe && (!Player.Object.IsJobCategory(JobRole.Tank) || s.ObjectId == Player.Object.GameObjectId) && (s.Path.StartsWith("vfx/lockon/eff/tank_lockon")
1186-
|| s.Path.StartsWith("vfx/lockon/eff/tank_laser"));
1185+
if (!Player.AvailableThreadSafe)
1186+
{
1187+
return false;
1188+
}
1189+
1190+
// For x6fe, ignore target and player role checks.
1191+
if (s.Path.StartsWith("vfx/lockon/eff/x6fe"))
1192+
{
1193+
return true;
1194+
}
1195+
1196+
// Preserve original checks for other tank lock-on effects.
1197+
return (!Player.Object.IsJobCategory(JobRole.Tank) || s.ObjectId == Player.Object.GameObjectId)
1198+
&& (s.Path.StartsWith("vfx/lockon/eff/tank_lockon")
1199+
|| s.Path.StartsWith("vfx/lockon/eff/tank_laser"));
11871200
});
11881201
}
11891202

RotationSolver/RebornRotations/Melee/VPR_Reborn.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,17 +574,27 @@ protected override bool GeneralGCD(out IAction? act)
574574
{
575575
return true;
576576
}
577+
578+
if (HuntersCoilPvE.CanUse(out act, skipStatusProvideCheck: true, skipComboCheck: true))
579+
{
580+
return true;
581+
}
582+
583+
if (SwiftskinsCoilPvE.CanUse(out act, skipStatusProvideCheck: true, skipComboCheck: true))
584+
{
585+
return true;
586+
}
577587
}
578588

579589
if (!IsSwift)
580590
{
581-
if (SwiftskinsCoilPvE.CanUse(out act, skipStatusProvideCheck: true, skipComboCheck: true, skipAoeCheck: true))
591+
if (SwiftskinsCoilPvE.CanUse(out act, skipStatusProvideCheck: true, skipComboCheck: true))
582592
return true;
583593
}
584594

585595
if (!IsHunter)
586596
{
587-
if (HuntersCoilPvE.CanUse(out act, skipStatusProvideCheck: true, skipComboCheck: true, skipAoeCheck: true))
597+
if (HuntersCoilPvE.CanUse(out act, skipStatusProvideCheck: true, skipComboCheck: true))
588598
return true;
589599
}
590600
}

RotationSolver/UI/RotationConfigWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3258,6 +3258,7 @@ private static unsafe void DrawStatus()
32583258
ImGui.Text($"Combo Time: {DataCenter.ComboTime}");
32593259
ImGui.Text($"TargetingType: {DataCenter.TargetingType}");
32603260
ImGui.Spacing();
3261+
ImGui.Text($"IsHostileCastingToTank: {DataCenter.IsHostileCastingToTank}");
32613262
ImGui.Text($"AttackedTargets: {DataCenter.AttackedTargets?.Count ?? 0}");
32623263
if (DataCenter.AttackedTargets != null)
32633264
{
@@ -3342,7 +3343,6 @@ private static unsafe void DrawStatus()
33423343
}
33433344

33443345
ImGui.Text($"DPSTaken: {DataCenter.DPSTaken}");
3345-
//ImGui.Text($"IsHostileCastingToTank: {DataCenter.IsHostileCastingToTank}");
33463346
ImGui.Text($"CurrentRotation: {DataCenter.CurrentRotation}");
33473347
ImGui.Text($"Job: {DataCenter.Job}");
33483348
ImGui.Text($"JobRange: {DataCenter.JobRange}");

0 commit comments

Comments
 (0)