]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix lingering ghost roles (and expand tests to catch it) (#38788)
authorQuantum-cross <7065792+Quantum-cross@users.noreply.github.com>
Wed, 9 Jul 2025 11:07:41 +0000 (07:07 -0400)
committerGitHub <noreply@github.com>
Wed, 9 Jul 2025 11:07:41 +0000 (13:07 +0200)
commit989338cb080b7d243b1a11bd24fa48a6b44ad216
tree9f78970c84adc6ca64f00db24b653d8ecca2e068
parentf29c35ff370f468d50c5a2eb27b1657df5d4e00d
Fix lingering ghost roles (and expand tests to catch it) (#38788)

* Improve and expand `TakeRoleAndReturn` to fail on bug #38292

* fix #38292 and expanded test cases

* use validated EntProtoIds for tests

remove unusued using declarations

* use const strings that match the TestPrototypes
Content.IntegrationTests/Tests/Minds/GhostRoleTests.cs
Content.Server/Ghost/Roles/GhostRoleSystem.cs