mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
[MIRROR] some istype to macros (#9802)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
73486c399b
commit
ed79946ade
@@ -574,7 +574,7 @@
|
||||
|
||||
if(ismob(A))
|
||||
var/mob/M = A
|
||||
if(istype(A, /mob/living))
|
||||
if(isliving(A))
|
||||
//if they have a neck grab on someone, that person gets hit instead
|
||||
var/obj/item/grab/G = locate() in M
|
||||
if(G && G.state >= GRAB_NECK)
|
||||
@@ -710,7 +710,7 @@
|
||||
return FALSE
|
||||
|
||||
var/impacted_organ = parse_zone(def_zone)
|
||||
if(istype(target_mob, /mob/living/simple_mob))
|
||||
if(isanimal(target_mob))
|
||||
var/mob/living/simple_mob/SM = target_mob
|
||||
var/decl/mob_organ_names/organ_plan = SM.organ_names
|
||||
impacted_organ = pick(organ_plan.hit_zones)
|
||||
|
||||
Reference in New Issue
Block a user