mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
[MIRROR] Fixes issue where role banned players can still play roles they're banned from. [MDB IGNORE] (#23399)
* Fixes issue where role banned players can still play roles they're banned from. * Update sql_ban_system.dm * Some formatting updates --------- Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
This commit is contained in:
co-authored by
Timberpoes
Bloop
parent
4c0a06439d
commit
f8b2329771
@@ -260,8 +260,13 @@ GLOBAL_LIST_EMPTY(antagonists)
|
||||
*/
|
||||
/datum/antagonist/proc/is_banned(mob/player)
|
||||
if(!player)
|
||||
stack_trace("Called is_banned without a mob. This shouldn't happen.")
|
||||
return FALSE
|
||||
. = (is_banned_from(player.ckey, list(ROLE_SYNDICATE, job_rank)) || QDELETED(player))
|
||||
|
||||
if(!player.ckey)
|
||||
return FALSE
|
||||
|
||||
return (is_banned_from(player.ckey, list(ROLE_SYNDICATE, job_rank)) || QDELETED(player))
|
||||
|
||||
/**
|
||||
* Proc that replaces a player who cannot play a specific antagonist due to being banned via a poll, and alerts the player of their being on the banlist.
|
||||
|
||||
Reference in New Issue
Block a user