server-master/srcs/_plugins/Plugin.Raids/Handlers/RaidPortalOpenEventHandler.cs
2026-02-10 18:21:30 +01:00

18 lines
No EOL
501 B
C#

using System.Threading;
using System.Threading.Tasks;
using PhoenixLib.Events;
using WingsAPI.Game.Extensions.PacketGeneration;
using WingsEmu.Game.Raids.Events;
using WingsEmu.Packets.Enums;
namespace Plugin.Raids;
public class RaidPortalOpenEventHandler : IAsyncEventProcessor<RaidPortalOpenEvent>
{
public async Task HandleAsync(RaidPortalOpenEvent e, CancellationToken cancellation)
{
e.Portal.Type = PortalType.Open;
e.RaidSubInstance.MapInstance.MapClear();
}
}