Skip to content

Commit

Permalink
Match rounds will no longer attempt to shoot their user
Browse files Browse the repository at this point in the history
Signed-off-by: Theos <[email protected]>
  • Loading branch information
SomeguyManperson authored Apr 28, 2024
1 parent 6dda4a3 commit 5756b00
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 @@ -306,7 +306,7 @@
if(firer && HAS_TRAIT(firer, TRAIT_NICE_SHOT))
best_angle += NICE_SHOT_RICOCHET_BONUS
for(var/mob/living/L in range(ricochet_auto_aim_range, src.loc))
if(L.stat == DEAD || !isInSight(src, L))
if(L.stat == DEAD || !isInSight(src, L) || L == firer)
continue
var/our_angle = abs(closer_angle_difference(Angle, Get_Angle(src.loc, L.loc)))
if(our_angle < best_angle)
Expand Down

0 comments on commit 5756b00

Please sign in to comment.