You cannot plant c4 on observers (#70595)

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
Co-authored-by: Aki Ito <11748095+ExcessiveUseOfCobblestone@users.noreply.github.com>
This commit is contained in:
YakumoChen
2022-10-18 06:57:11 +00:00
committed by GitHub
co-authored by Mothblocks Aki Ito
parent 8e0f99c473
commit f4d0902f5f
@@ -85,6 +85,8 @@
/obj/item/grenade/c4/afterattack(atom/movable/bomb_target, mob/user, flag)
. = ..()
aim_dir = get_dir(user, bomb_target)
if(isdead(bomb_target))
return
if(!flag)
return
if(bomb_target != user && HAS_TRAIT(user, TRAIT_PACIFISM) && isliving(bomb_target))