prevent taking ghost roles from the lobby (#3220)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
parent
d62ba1352e
commit
e57eb0ae0b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue