CurrencyAlertClassic/KamiLib/Extensions/PartyMemberExtensions.cs

18 lines
521 B
C#

using System.Collections.Generic;
using System.Linq;
using Dalamud.Game.ClientState.Party;
namespace KamiLib.Extensions;
public static class PartyMemberExtensions
{
public static bool HasStatus(this PartyMember character, uint statusId)
{
return character.Statuses.Any(status => status.StatusId == statusId);
}
public static bool HasStatus(this PartyMember character, List<uint> statusList)
{
return character.Statuses.Any(status => statusList.Contains(status.StatusId));
}
}