Skip to content

Commit

Permalink
Merge pull request #452 from FFXIV-CombatReborn/redtext
Browse files Browse the repository at this point in the history
Update ECommons submodule and improve null checks
  • Loading branch information
LTS-FFXIV authored Nov 28, 2024
2 parents 2940b80 + 1484a1d commit ff7c6d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Actions/ActionTargetInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ private readonly bool CanGetTarget(IGameObject target, IGameObject subTarget)
if (Service.Config.FilterStopMark)
{
var filteredCharacters = MarkingHelper.FilterStopCharacters(IGameObjects);
if (filteredCharacters?.Any() ?? false)
if (filteredCharacters != null && filteredCharacters.Any())
{
IGameObjects = filteredCharacters;
}
Expand Down
1 change: 1 addition & 0 deletions RotationSolver.Basic/Helpers/ObjectHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ internal static bool IsTopPriorityHostile(this IGameObject obj)

if (obj is IBattleChara b)
{
// Ensure StatusList is not null before calling Any
if (b.StatusList != null && b.StatusList.Any(StatusHelper.IsPriority)) return true;
}

Expand Down

0 comments on commit ff7c6d4

Please sign in to comment.