Ghosts can no longer rename monkeys (#13543)

* Ghosts can no longer rename monkeys

* Forgot to make it carbon like the last fix
This commit is contained in:
Doxxmedearly
2022-04-16 19:40:44 -04:00
committed by GitHub
parent 862c27ca48
commit f232ca2fa5
2 changed files with 13 additions and 2 deletions

View File

@@ -1232,8 +1232,13 @@ mob/living/carbon/human/proc/change_monitor()
set category = "IC"
set src in view(1)
var/mob/living/M = usr
if(!M || usr == src)
var/mob/living/carbon/M = usr
if(!istype(M))
to_chat(usr, SPAN_WARNING("You aren't allowed to rename \the [src]."))
return
if(usr == src)
to_chat(usr, SPAN_WARNING("You're a simple creature, you can't rename yourself!"))
return
if(can_name(M))