mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Prevents cult teleport while prone (#20159)
* prevents cult teleport while prone * Sirryan, Hal requests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user