mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +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
@@ -167,13 +167,13 @@
|
||||
done_mob_unique = TRUE
|
||||
success = TRUE
|
||||
if(I_HURT)
|
||||
if(prob(10) && istype(L, /mob/living/carbon/human))
|
||||
if(prob(10) && ishuman(L))
|
||||
to_chat(L, span_warning("\The [src] rips at your hands!"))
|
||||
ranged_disarm(L)
|
||||
success = TRUE
|
||||
done_mob_unique = TRUE
|
||||
if(I_DISARM)
|
||||
if(prob(disarm_chance) && istype(L, /mob/living/carbon/human))
|
||||
if(prob(disarm_chance) && ishuman(L))
|
||||
ranged_disarm(L)
|
||||
else
|
||||
L.visible_message(span_danger("\The [src] sends \the [L] stumbling backwards."))
|
||||
|
||||
Reference in New Issue
Block a user