mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
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:
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))
|
||||
|
||||
Reference in New Issue
Block a user