Fixes hobo-bombing exploit

This commit is contained in:
kanef
2021-12-15 01:43:35 +00:00
parent 6055659cb9
commit 4227ad1001

View File

@@ -539,10 +539,9 @@
return
var/response = alert(src, "Are you -sure- you want to become a space hobo?","Are you sure you want to ramble?","Yeah!","Nope!")
if(response != "Yeah!")
if(response != "Yeah!" || !src.key)
return //Hit the wrong key...again.
//find a viable mouse candidate
var/mob/living/carbon/human/hobo = new(pick(hobostart))
hobo.key = src.key
hobo.set_species(pick(200;"Human",50;"Vox",50;"Insectoid",25;"Diona",25;"Grey",1;"Tajaran",10;"Unathi"))