Skip to content

Commit b300faf

Browse files
authored
block while lying down (#1108)
1 parent ebdccff commit b300faf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

code/game/objects/items.dm

+3
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,9 @@ DEFINE_INTERACTABLE(/obj/item)
726726

727727
/// Checks if this item can block an incoming attack.
728728
/obj/item/proc/can_block_attack(mob/living/carbon/human/wielder, atom/movable/hitby, attack_type)
729+
if(wielder.body_position == LYING_DOWN)
730+
return TRUE
731+
729732
var/angle = get_relative_attack_angle(wielder, hitby)
730733
if(angle <= block_angle)
731734
return TRUE

0 commit comments

Comments
 (0)