mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
[s] Fix an exploit involving air alarms. (#32171)
* Fix an exploit involving air alarms. * Apply sug Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> Signed-off-by: Alan <alfalfascout@users.noreply.github.com> --------- Signed-off-by: Alan <alfalfascout@users.noreply.github.com> Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
This commit is contained in:
@@ -872,6 +872,9 @@ GLOBAL_LIST_INIT(aalarm_modes, list(
|
||||
to_chat(user, SPAN_WARNING("AI control for \the [src] interface has been disabled."))
|
||||
return UI_CLOSE
|
||||
|
||||
if(rcon_setting == RCON_NO && !Adjacent(user) && !issilicon(user))
|
||||
return UI_DISABLED
|
||||
|
||||
. = shorted ? UI_DISABLED : UI_INTERACTIVE
|
||||
|
||||
return min(..(), .)
|
||||
|
||||
Reference in New Issue
Block a user