mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Ensure the fake death power checks the status again after input (#22943)
This commit is contained in:
@@ -35,4 +35,10 @@
|
||||
switch(alert("Are we sure we wish to fake our death?",,"Yes","No"))
|
||||
if("No")
|
||||
return FALSE
|
||||
// Do the checks again since we had user input
|
||||
if(cling.owner != user.mind)
|
||||
return FALSE
|
||||
if(HAS_TRAIT(user, TRAIT_FAKEDEATH))
|
||||
to_chat(user, "<span class='warning'>We are already regenerating.</span>")
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user