prevent taking ghost roles from the lobby (#3220)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas 2025-03-13 14:52:08 +00:00 committed by GitHub
parent d62ba1352e
commit e57eb0ae0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ public sealed partial class GhostRoleSystem : EntitySystem // Converted to parti
if (player.AttachedEntity == null || !HasComp<GhostComponent>(player.AttachedEntity))
return false;
if (Takeover(player, identifier))
if (TryTakeover(player, identifier)) // DeltaV - prevent taking ghost roles in lobby
{
// takeover successful, we have a winner! remove the winner from other raffles they might be in
LeaveAllRaffles(player);