Allow AI to change alert level (again) (#14443)

This commit is contained in:
DreamySkrell
2022-07-24 15:01:40 +02:00
committed by GitHub
parent 7ee906bcf9
commit a04a6ce01b
2 changed files with 7 additions and 1 deletions

View File

@@ -242,7 +242,7 @@
post_display_status(href_list["target"])
if("setalert")
if(is_authenticated(user) && !issilicon(usr) && ntn_cont && ntn_comm)
if(is_authenticated(user) && (!issilicon(usr) || isAI(usr)) && ntn_cont && ntn_comm)
var/current_level = text2num(href_list["target"])
var/confirm = alert("Are you sure you want to change alert level to [num2seclevel(current_level)]?", name, "No", "Yes")
if(confirm == "Yes" && can_still_topic())