Skip to content

Commit

Permalink
[MIRROR] Disallow bullets to reach hostage when attacker is turned away
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene authored and SierraHelper committed Jan 15, 2024
1 parent 71050d0 commit 0b40391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/projectiles/projectile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
if(istype(A, /mob/living))
//if they have a neck grab on someone, that person gets hit instead
var/obj/item/grab/G = locate() in M
if(G && G.shield_assailant())
if(G && G.shield_assailant() && src.dir == GLOB.reverse_dir[M.dir])
G.affecting.visible_message(SPAN_DANGER("\The [M] uses \the [G.affecting] as a shield!"))
if(Bump(G.affecting, forced=1))
return //If Bump() returns 0 (keep going) then we continue on to attack M.
Expand Down

0 comments on commit 0b40391

Please sign in to comment.