Adds a cancel button to the wizard teleport spell

This commit is contained in:
SteelSlayer
2019-11-10 11:31:02 -06:00
parent ac23355576
commit 6dbfd469a2
+4 -1
View File
@@ -25,10 +25,13 @@
var/A = null
if(!randomise_selection)
A = input("Area to teleport to", "Teleport", A) in teleportlocs
A = input("Area to teleport to", "Teleport", A) as null|anything in teleportlocs
else
A = pick(teleportlocs)
if(!A)
return
var/area/thearea = teleportlocs[A]
if(thearea.tele_proof && !istype(thearea, /area/wizard_station))