Improves self-harm message formatting. (#48320)

This commit is contained in:
AnturK
2019-12-21 18:17:39 +01:00
committed by skoglol
parent 30e73188de
commit 7e78755bc3
+2
View File
@@ -147,6 +147,8 @@
if(user in viewers(src, null))
attack_message = "[user] [message_verb] [src][message_hit_area] with [I]!"
attack_message_local = "[user] [message_verb] you[message_hit_area] with [I]!"
if(user == src)
attack_message_local = "You [message_verb] yourself[message_hit_area] with [I]"
visible_message("<span class='danger'>[attack_message]</span>",\
"<span class='userdanger'>[attack_message_local]</span>", null, COMBAT_MESSAGE_RANGE)
return 1