Skip to content

Commit

Permalink
Merge pull request #501 from FFXIV-CombatReborn/woopsEsuna
Browse files Browse the repository at this point in the history
Fix to esuna bug
  • Loading branch information
LTS-FFXIV authored Dec 31, 2024
2 parents 3eba4a4 + c439beb commit c2d3e29
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
12 changes: 12 additions & 0 deletions RotationSolver/UI/RotationConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,18 @@ private static unsafe void DrawStatus()
ImGui.Text("Friendly NPC Members: None");
}

// Display dispel target
var dispelTarget = DataCenter.DispelTarget;
if (dispelTarget != null)
{
ImGui.Text("Dispel Target:");
ImGui.Text($"- {dispelTarget.Name}");
}
else
{
ImGui.Text("Dispel Target: None");
}

ImGui.Text($"TerritoryType: {DataCenter.TerritoryContentType}");
ImGui.Text($"DPSTaken: {DataCenter.DPSTaken}");
ImGui.Text($"IsHostileCastingToTank: {DataCenter.IsHostileCastingToTank}");
Expand Down
10 changes: 6 additions & 4 deletions RotationSolver/Updaters/TargetUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ private static List<IBattleChara> GetAllHostileTargets()
private static IBattleChara? GetDispelTarget()
{
var rotation = DataCenter.RightNowRotation;
if ((Player.Job == Job.WHM || Player.Job == Job.SCH || Player.Job == Job.AST || Player.Job == Job.SGE ||
Player.Job == Job.BRD) && Service.Config.DispelAll)
if (Player.Job == Job.WHM || Player.Job == Job.SCH || Player.Job == Job.AST || Player.Job == Job.SGE ||
Player.Job == Job.BRD)
{
var weakenPeople = DataCenter.PartyMembers?
.Where(o => o is IBattleChara b && b.StatusList != null &&
Expand All @@ -236,8 +236,10 @@ private static List<IBattleChara> GetAllHostileTargets()
?? weakenPeople.OrderBy(ObjectHelper.DistanceToPlayer).FirstOrDefault()
?? weakenNPC.OrderBy(ObjectHelper.DistanceToPlayer).FirstOrDefault();
}

return null;
else
{
return null;
}
}

private static void UpdateTimeToKill()
Expand Down

0 comments on commit c2d3e29

Please sign in to comment.