[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

@@ -45,7 +45,7 @@
if(!do_mob(user, target, time))
return
if(istype(target, /mob/living/carbon/human))
if(ishuman(target))
var/mob/living/carbon/human/victim = target
var/obj/item/safe_thing = null

View File

@@ -23,7 +23,7 @@
var/mob/living/L = user
if(M == L)
if(istype(M, /mob/living/carbon/human))
if(ishuman(M))
var/mob/living/carbon/human/H = M
var/obj/item/organ/external/affecting = H.get_organ(check_zone(L.zone_sel.selecting))
if(!affecting)
@@ -44,7 +44,7 @@
qdel(src)
return 1
else if(istype(M, /mob/living/carbon/human))
else if(ishuman(M))
var/mob/living/carbon/human/H = M
var/obj/item/organ/external/affecting = H.get_organ(check_zone(L.zone_sel.selecting))
if(!affecting)

View File

@@ -24,7 +24,7 @@
/obj/item/reagent_containers/pill/attack(mob/M as mob, mob/user as mob)
if(M == user)
if(istype(M, /mob/living/carbon/human))
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(!H.check_has_mouth())
to_chat(user, "Where do you intend to put \the [src]? You don't have a mouth!")
@@ -43,7 +43,7 @@
qdel(src)
return 1
else if(istype(M, /mob/living/carbon/human))
else if(ishuman(M))
var/mob/living/carbon/human/H = M
if(!H.check_has_mouth())

View File

@@ -133,7 +133,7 @@
var/datum/reagent/B
drawing = 1
if(istype(T, /mob/living/carbon/human))
if(ishuman(T))
var/mob/living/carbon/human/H = T
if(H.species && !H.should_have_organ(O_HEART))
H.reagents.trans_to_obj(src, amount)
@@ -261,7 +261,7 @@
return
/obj/item/reagent_containers/syringe/proc/syringestab(mob/living/carbon/target as mob, mob/living/carbon/user as mob)
if(istype(target, /mob/living/carbon/human))
if(ishuman(target))
var/mob/living/carbon/human/H = target