From 35c5e36bb26f3ff03185997970a26045cccabe65 Mon Sep 17 00:00:00 2001 From: LTS-FFXIV <127939494+LTS-FFXIV@users.noreply.github.com> Date: Mon, 24 Feb 2025 16:45:41 -0600 Subject: [PATCH] Initialize death lists with deathParty; add priority method The initialization of `deathAllianceHealers` and `deathAllianceSupports` now includes the contents of `deathParty`, ensuring these lists start with the same elements as `deathParty`. Added a new private static method `GetPriorityDeathTarget` to determine the highest priority target for raising from a list of valid targets, potentially improving the logic for handling death targets in the game. --- RotationSolver/Updaters/TargetUpdater.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RotationSolver/Updaters/TargetUpdater.cs b/RotationSolver/Updaters/TargetUpdater.cs index b4abe237..1b92b77e 100644 --- a/RotationSolver/Updaters/TargetUpdater.cs +++ b/RotationSolver/Updaters/TargetUpdater.cs @@ -191,8 +191,8 @@ private static List GetAllHostileTargets() var deathAll = DataCenter.AllTargets?.GetDeath().ToList() ?? new List(); var deathNPC = DataCenter.FriendlyNPCMembers?.GetDeath().ToList() ?? new List(); var deathAllianceMembers = DataCenter.AllianceMembers?.GetDeath().ToList() ?? new List(); - var deathAllianceHealers = new List(); - var deathAllianceSupports = new List(); + var deathAllianceHealers = new List(deathParty); + var deathAllianceSupports = new List(deathParty); if (DataCenter.AllianceMembers != null) { @@ -255,6 +255,7 @@ private static List GetAllHostileTargets() return null; } + private static IBattleChara? GetPriorityDeathTarget(List validRaiseTargets, RaiseType raiseType = RaiseType.PartyOnly) { if (validRaiseTargets.Count == 0) return null;