Skip to content

Commit

Permalink
Directional attack adjacency sanity (#15235)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmixo authored and homexp13 committed Jul 19, 2024
1 parent eb059db commit e1717d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/elements/directional_attack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
return

var/turf/turf_to_check = get_step(source, angle_to_dir(Get_Angle(source, clicked_atom)))
if(!turf_to_check)
if(!turf_to_check || !source.Adjacent(turf_to_check))
return

var/mob/target_mob = locate() in turf_to_check
Expand Down

0 comments on commit e1717d9

Please sign in to comment.