Skip to content

Commit

Permalink
Disables directional attacks for mobs of the same faction as you (#15…
Browse files Browse the repository at this point in the history
…237)
  • Loading branch information
ivanmixo authored and homexp13 committed Jul 19, 2024
1 parent e1717d9 commit 20db66e
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 @@ -35,7 +35,7 @@
return

var/mob/target_mob = locate() in turf_to_check
if(!target_mob)
if(!target_mob || source.faction == target_mob.faction)
return

//This is here to undo the +1 the click on the distant turf adds so we can click the mob near us
Expand Down

0 comments on commit 20db66e

Please sign in to comment.