Skip to content

Commit

Permalink
Initialize death lists with deathParty; add priority method
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LTS-FFXIV committed Feb 24, 2025
1 parent bccdc11 commit 35c5e36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RotationSolver/Updaters/TargetUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ private static List<IBattleChara> GetAllHostileTargets()
var deathAll = DataCenter.AllTargets?.GetDeath().ToList() ?? new List<IBattleChara>();
var deathNPC = DataCenter.FriendlyNPCMembers?.GetDeath().ToList() ?? new List<IBattleChara>();
var deathAllianceMembers = DataCenter.AllianceMembers?.GetDeath().ToList() ?? new List<IBattleChara>();
var deathAllianceHealers = new List<IBattleChara>();
var deathAllianceSupports = new List<IBattleChara>();
var deathAllianceHealers = new List<IBattleChara>(deathParty);
var deathAllianceSupports = new List<IBattleChara>(deathParty);

if (DataCenter.AllianceMembers != null)
{
Expand Down Expand Up @@ -255,6 +255,7 @@ private static List<IBattleChara> GetAllHostileTargets()
return null;
}


private static IBattleChara? GetPriorityDeathTarget(List<IBattleChara> validRaiseTargets, RaiseType raiseType = RaiseType.PartyOnly)
{
if (validRaiseTargets.Count == 0) return null;
Expand Down

0 comments on commit 35c5e36

Please sign in to comment.