Prevents cult teleport while prone (#20159)

* prevents cult teleport while prone

* Sirryan, Hal requests
This commit is contained in:
Coolrune206
2023-01-20 11:55:07 -05:00
committed by GitHub
parent 5413955ce2
commit b375de9af4
+5
View File
@@ -513,6 +513,11 @@
var/obj/effect/rune/teleport/actual_selected_rune = potential_runes[input_rune_key] //what rune does that key correspond to?
if(QDELETED(src) || !user || user.l_hand != src && user.r_hand != src || user.incapacitated() || !actual_selected_rune)
return
if(HAS_TRAIT(user, TRAIT_FLOORED))
to_chat(user, "<span class='cultitalic'>You cannot cast this spell while knocked down!</span>")
return
uses--
var/turf/origin = get_turf(teleportee)