Prevent /suicide (#84)

Rebinds as /ghost instead
This commit is contained in:
Debug 2023-10-03 21:53:42 +02:00 committed by GitHub
parent 8de3e3746a
commit 445be9b072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,8 @@ namespace Content.Server.Chat
if (SuicideAttemptBlocked(victim, suicideEvent))
return false;
return false; // DeltaV - Prevent Suicide. We allow the event to go out anyways in case anything relies on the event for a message or whatever.
bool environmentSuicide = false;
// If you are critical, you wouldn't be able to use your surroundings to suicide, so you do the default suicide
if (!_mobState.IsCritical(victim, mobState))