mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix no one can vent
This commit is contained in:
1 parent
72b57f7c75
commit
31de756f15
1 file changed
+1
-1
@@ -77,7 +77,7 @@ internal static class ExtendedPlayerControl
|
||||
if (CustomGameMode.RoomRush.IsActiveOrIntegrated()) return true;
|
||||
if (player.Is(CustomRoles.Trainee) && MeetingStates.FirstMeeting) return false;
|
||||
if (player.Is(CustomRoles.Blocked) && player.GetClosestVent()?.Id != ventId) return false;
|
||||
if (GameStates.IsInTask) return false;
|
||||
if (!GameStates.IsInTask) return false;
|
||||
return (player.inVent && player.GetClosestVent()?.Id == ventId) || ((player.CanUseImpostorVentButton() || player.GetRoleTypes() == RoleTypes.Engineer) && Main.PlayerStates.Values.All(x => x.Role.CanUseVent(player, ventId)));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user