server-master/srcs/WingsAPI.Game/Networking/Broadcasting/ExceptRaidBroadcast.cs
2026-02-10 18:21:30 +01:00

12 lines
No EOL
395 B
C#

using System;
namespace WingsEmu.Game.Networking.Broadcasting;
public class ExceptRaidBroadcast : IBroadcastRule
{
private readonly Guid _id;
public ExceptRaidBroadcast(Guid raidId) => _id = raidId;
public bool Match(IClientSession session) => session != null && (!session.PlayerEntity.IsInRaidParty || session.PlayerEntity.Raid != null && session.PlayerEntity.Raid.Id != _id);
}