This commit is contained in:
Gurge44 committed 2024-12-05 14:44:51 +01:00
1 parent 54c1ef5515
commit e8998f7f4b
1 file changed
+1 -1
+1 -1
View File
@@ -329,7 +329,7 @@ public static class HauntMenuMinigameSetFilterTextPatch
{
public static bool Prefix(HauntMenuMinigame __instance)
{
if (__instance.HauntTarget != null && Options.GhostCanSeeOtherRoles.GetBool())
if (__instance.HauntTarget != null && Options.GhostCanSeeOtherRoles.GetBool() && (!Main.DiedThisRound.Contains(PlayerControl.LocalPlayer.PlayerId) || (!CustomRoles.Altruist.RoleExist() && !CustomRoles.Occultist.RoleExist())))
{
byte id = __instance.HauntTarget.PlayerId;
__instance.FilterText.text = Utils.GetDisplayRoleName(id) + Utils.GetProgressText(id);