[MIRROR] some istype to macros (#9802)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-01-05 15:01:49 -07:00
committed by GitHub
parent 73486c399b
commit ed79946ade
409 changed files with 750 additions and 751 deletions

View File

@@ -4,7 +4,7 @@
//Note that this proc does NOT do MMI related stuff!
/mob/proc/change_mob_type(var/new_type = null, var/turf/location = null, var/new_name = null as text, var/delete_old_mob = 0 as num, var/subspecies)
if(istype(src,/mob/new_player))
if(isnewplayer(src))
to_chat(usr, span_red("cannot convert players who have not entered yet."))
return
@@ -48,7 +48,7 @@
else
M.key = key
if(subspecies && istype(M,/mob/living/carbon/human))
if(subspecies && ishuman(M))
var/mob/living/carbon/human/H = M
H.set_species(subspecies)