mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 17:43:35 +01:00
Prevent drawing teleport runes in the gateway (#17086)
This commit is contained in:
@@ -501,7 +501,7 @@
|
||||
log_game("Teleport spell failed - no other teleport runes")
|
||||
return
|
||||
if(!is_level_reachable(user.z))
|
||||
to_chat(user, "<span class='cultitalic'>You are not in the right dimension!</span>")
|
||||
to_chat(user, "<span class='cultitalic'>You are too far away from the station to teleport!</span>")
|
||||
log_game("Teleport spell failed - user in away mission")
|
||||
return
|
||||
|
||||
|
||||
@@ -139,6 +139,11 @@
|
||||
to_chat(user, "<span class='cultitalic'>The veil is not weak enough here to summon a cultist, you must be on station!</span>")
|
||||
return
|
||||
|
||||
if(ispath(rune, /obj/effect/rune/teleport))
|
||||
if(!is_level_reachable(user.z))
|
||||
to_chat(user, "<span class='cultitalic'>You are too far away from the station to teleport!</span>")
|
||||
return
|
||||
|
||||
var/old_color = user.color // we'll temporarily redden the user for better feedback to fellow cultists. Store this to revert them back.
|
||||
if(narsie_rune)
|
||||
if(!narsie_rune_check(user, A))
|
||||
|
||||
@@ -461,7 +461,7 @@ structure_check() searches for nearby cultist structures required for the invoca
|
||||
return
|
||||
|
||||
if(!is_level_reachable(user.z))
|
||||
to_chat(user, "<span class='cultitalic'>You are not in the right dimension!</span>")
|
||||
to_chat(user, "<span class='cultitalic'>You are too far away from the station to teleport!</span>")
|
||||
log_game("Teleport rune failed - user in away mission")
|
||||
fail_invoke()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user