mitigates the ghost roles/mid-round antag lock out for suicide/cryo. And related fixes.

This commit is contained in:
Ghommie
2019-10-09 06:51:07 +02:00
parent 47c18fd052
commit b4e975ef75
11 changed files with 43 additions and 16 deletions
+5
View File
@@ -69,6 +69,11 @@ SUBSYSTEM_DEF(pai)
candidate.comments = copytext(sanitize(candidate.comments),1,MAX_MESSAGE_LEN)
if("submit")
if(isobserver(usr))
var/mob/dead/observer/O = usr
if(O.reenter_round_timeout > world.realtime)
to_chat(O, "<span class='warning'>You are unable to reenter the round yet. Your ghost role blacklist will expire in [round((O.reenter_round_timeout - world.realtime)/600)] minutes.</span>")
return
if(candidate)
candidate.ready = 1
for(var/obj/item/paicard/p in pai_card_list)