Fix exception when observer tries to take over GhostTakeoverAvailable mob that has a mind.
That method is essentially a `TryTake` method, why would it throw instead of returning false...
This commit is contained in:
@@ -57,7 +57,8 @@ namespace Content.Server.Ghost.Roles.Components
|
||||
|
||||
mind!.TransferTo(mob);
|
||||
|
||||
if (++_currentTakeovers < _availableTakeovers) return true;
|
||||
if (++_currentTakeovers < _availableTakeovers)
|
||||
return true;
|
||||
|
||||
Taken = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user