From 5ebc01a926de461c344a5d50f4ee711a6a9996dd Mon Sep 17 00:00:00 2001 From: Gurge44 Date: Mon, 7 Jul 2025 14:51:22 +0200 Subject: [PATCH] a --- Modules/CustomRolesHelper.cs | 2 ++ Modules/ExtendedPlayerControl.cs | 2 +- Modules/GameOptionsSender/PlayerGameOptionsSender.cs | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Modules/CustomRolesHelper.cs b/Modules/CustomRolesHelper.cs index 189bf465e..5c2b11dd9 100644 --- a/Modules/CustomRolesHelper.cs +++ b/Modules/CustomRolesHelper.cs @@ -892,6 +892,8 @@ internal static class CustomRolesHelper public static bool NeedsUpdateAfterDeath(this CustomRoles role) { return role is + CustomRoles.KOTZPlayer or + CustomRoles.CTFPlayer or CustomRoles.KB_Normal or CustomRoles.BedWarsPlayer or CustomRoles.Weatherman or diff --git a/Modules/ExtendedPlayerControl.cs b/Modules/ExtendedPlayerControl.cs index 9c3e5f9af..1c3c7301c 100644 --- a/Modules/ExtendedPlayerControl.cs +++ b/Modules/ExtendedPlayerControl.cs @@ -267,7 +267,7 @@ internal static class ExtendedPlayerControl Main.PlayerStates[pc.PlayerId].SetDead(); CustomRpcSender.Create("Temporary Death", SendOption.Reliable) - .AutoStartRpc(pc.NetId, 4) + .AutoStartRpc(pc.NetId, RpcCalls.Exiled) .EndRpc() .SendMessage(); diff --git a/Modules/GameOptionsSender/PlayerGameOptionsSender.cs b/Modules/GameOptionsSender/PlayerGameOptionsSender.cs index 211d879e4..f387f5e9a 100644 --- a/Modules/GameOptionsSender/PlayerGameOptionsSender.cs +++ b/Modules/GameOptionsSender/PlayerGameOptionsSender.cs @@ -176,7 +176,6 @@ public sealed class PlayerGameOptionsSender(PlayerControl player) : GameOptionsS case CustomGameMode.RoomRush: case CustomGameMode.Speedrun: case CustomGameMode.HotPotato: - case CustomGameMode.KingOfTheZones: SetMaxVision(); break; case CustomGameMode.BedWars: @@ -208,11 +207,12 @@ public sealed class PlayerGameOptionsSender(PlayerControl player) : GameOptionsS catch (Exception e) { Utils.ThrowException(e); } goto case CustomGameMode.RoomRush; + case CustomGameMode.KingOfTheZones: case CustomGameMode.SoloKombat: try { AURoleOptions.GuardianAngelCooldown = 900f; } catch (Exception e) { Utils.ThrowException(e); } - break; + goto case CustomGameMode.RoomRush; } switch (player.GetCustomRoleTypes())