From bddd7d352087736049ff86d9ccddaf9a32ba4baa Mon Sep 17 00:00:00 2001 From: VALERA771 Date: Mon, 12 Aug 2024 17:39:52 +0300 Subject: [PATCH] suj --- EXILED/Exiled.Events/EventArgs/Player/EscapedEventArgs.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EXILED/Exiled.Events/EventArgs/Player/EscapedEventArgs.cs b/EXILED/Exiled.Events/EventArgs/Player/EscapedEventArgs.cs index d2d55bba3..f185f7845 100644 --- a/EXILED/Exiled.Events/EventArgs/Player/EscapedEventArgs.cs +++ b/EXILED/Exiled.Events/EventArgs/Player/EscapedEventArgs.cs @@ -35,7 +35,7 @@ public EscapedEventArgs(Player player, EscapeScenario escapeScenario, Role role, EscapeScenario = escapeScenario; Team = kvp.Key; Tickets = kvp.Value; - OldRole = role.Type; + OldRole = role; EscapeTime = (int)Math.Ceiling(role.ActiveTime.TotalSeconds); } @@ -60,7 +60,7 @@ public EscapedEventArgs(Player player, EscapeScenario escapeScenario, Role role, /// /// Gets the previous role for this player. /// - public RoleTypeId OldRole { get; } + public Role OldRole { get; } /// /// Gets the time in seconds since round started.