Skip to content

Commit

Permalink
Merge pull request #154 from FFXIV-CombatReborn/status-list-null-check
Browse files Browse the repository at this point in the history
Added a null check to StatusList during IsTopPriorityHostile to try a…
  • Loading branch information
NostraThomas99 authored May 14, 2024
2 parents f4f09c9 + 1f104ec commit 8d359d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RotationSolver.Basic/Helpers/ObjectHelper.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Dalamud.Game.ClientState.Objects.Enums;
using Dalamud.Game.ClientState.Objects.SubKinds;
using Dalamud.Game.ClientState.Statuses;
using ECommons.DalamudServices;
using ECommons.GameFunctions;
using ECommons.GameHelpers;
Expand Down Expand Up @@ -238,7 +239,7 @@ or 71224 //Other Quest
or 71344 //Major Quest
|| obj.GetEventType() is EventHandlerType.Quest)) return true;

if (obj is BattleChara b && b.StatusList.Any(StatusHelper.IsPriority)) return true;
if (obj is BattleChara b && b.StatusList != null && b.StatusList.Any(StatusHelper.IsPriority)) return true;

if (Service.Config.ChooseAttackMark && MarkingHelper.AttackSignTargets.FirstOrDefault(id => id != GameObject.InvalidGameObjectId) == obj.ObjectId) return true;

Expand Down

0 comments on commit 8d359d6

Please sign in to comment.