diff --git a/EXILED/Exiled.API/Extensions/MirrorExtensions.cs b/EXILED/Exiled.API/Extensions/MirrorExtensions.cs index 114435a401..568eabf511 100644 --- a/EXILED/Exiled.API/Extensions/MirrorExtensions.cs +++ b/EXILED/Exiled.API/Extensions/MirrorExtensions.cs @@ -271,6 +271,15 @@ public static void ChangeAppearance(this Player player, RoleTypeId type, IEnumer writer.WriteByte(unitId); } + if (roleBase is ZombieRole) + { + if (player.Role.Base is not ZombieRole) + isRisky = true; + + writer.WriteUShort((ushort)Mathf.Clamp(Mathf.CeilToInt(player.MaxHealth), ushort.MinValue, ushort.MaxValue)); + writer.WriteBool(true); + } + if (roleBase is FpcStandardRoleBase fpc) { if (player.Role.Base is not FpcStandardRoleBase playerfpc) @@ -284,14 +293,6 @@ public static void ChangeAppearance(this Player player, RoleTypeId type, IEnumer writer.WriteUShort(value); } - if (roleBase is ZombieRole) - { - if (player.Role.Base is not ZombieRole) - isRisky = true; - - writer.WriteUShort((ushort)Mathf.Clamp(Mathf.CeilToInt(player.MaxHealth), ushort.MinValue, ushort.MaxValue)); - } - foreach (Player target in playersToAffect) { if (target != player || !isRisky)