Skip to content

Commit

Permalink
Merge branch 'xmas-2024' into Only-availaible-for-Christmas-and-April…
Browse files Browse the repository at this point in the history
…Fools
  • Loading branch information
louis1706 authored Jan 16, 2025
2 parents 5598231 + c6816f9 commit fba9eda
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions EXILED/Exiled.API/Extensions/MirrorExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace Exiled.API.Extensions
using PlayerRoles;
using PlayerRoles.FirstPersonControl;
using PlayerRoles.PlayableScps.Scp049.Zombies;
using PlayerRoles.PlayableScps.Scp1507;
using PlayerRoles.Voice;
using RelativePositioning;

Expand Down Expand Up @@ -269,6 +270,14 @@ public static void ChangeAppearance(this Player player, RoleTypeId type, IEnumer
writer.WriteBool(true);
}

if (roleBase is Scp1507Role)
{
if (player.Role.Base is not Scp1507Role)
isRisky = true;

writer.WriteByte((byte)player.Role.SpawnReason);
}

if (roleBase is FpcStandardRoleBase fpc)
{
if (player.Role.Base is not FpcStandardRoleBase playerfpc)
Expand Down

0 comments on commit fba9eda

Please sign in to comment.