This commit is contained in:
ang-xd committed 2025-02-15 17:59:40 -05:00
1 parent 2bb1d41e65
commit 2b1db0ee24
1 file changed
+1 -1
+1 -1
View File
@@ -135,7 +135,7 @@ public interface ICustomRole
/// <returns>Whether they can see the role (name color) or not.</returns>
public virtual bool CanLocalPlayerSeeRole(PlayerControl player)
{
return (Team == ModdedRoleTeams.Impostor && player.Data.Role.IsImpostor) || PlayerControl.LocalPlayer.Data.IsDead;
return (PlayerControl.LocalPlayer.Data.Role.IsImpostor && player.Data.Role.IsImpostor) || PlayerControl.LocalPlayer.Data.IsDead;
}
/// <summary>