Punctual Skrell (#10478)

This commit is contained in:
Geeves
2020-11-07 17:36:15 +01:00
committed by GitHub
parent e22eca4b93
commit 78c7a8e5f4
2 changed files with 11 additions and 4 deletions
+5 -4
View File
@@ -240,11 +240,15 @@
. = ..()
if(.)
user.visible_message(SPAN_NOTICE("<i>[user] blinks, their eyes briefly developing an unnatural shine.</i>"))
if(target.stat == DEAD)
to_chat(user, SPAN_CULT("Not even a psion of your level can speak to the dead."))
return
var/text = input("What would you like to say?", "Speak to creature", null, null)
text = sanitize(text)
if(!text)
return
text = formalize_text(text)
if(target.stat == DEAD)
to_chat(user, SPAN_CULT("Not even a psion of your level can speak to the dead."))
@@ -272,9 +276,6 @@
to_chat(H, SPAN_CULT("<b>You sense [user]'s psyche link with your psi-receiver, a thought sliding into your mind:</b> [text]"))
else
to_chat(H, SPAN_ALIEN("<b>A thought from outside your consciousness slips into your mind:</b> [text]"))
if(istype(H))
if(H.can_commune() || H.stat >= UNCONSCIOUS)
return
/datum/psionic_power/coercion/psiping
name = "Psi Ping"