Skip to content

Commit

Permalink
Update xeno.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Git-Nivrak committed Jun 13, 2024
1 parent b0e1823 commit a3ce6ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/_onclick/xeno.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

if(isturf(target) && tile_attack) //Attacks on turfs must be done indirectly through directional attacks or clicking own sprite.
var/turf/T = target
var/mob/living/non_xeno_target
for(var/mob/living/L in T)
if (!iscarbon(L))
if (!alt)
Expand All @@ -21,13 +22,16 @@

if (!L.is_xeno_grabbable() || L == src) //Xenos never attack themselves.
continue
if(!isxeno(L))
non_xeno_target = L
if (L.body_position == LYING_DOWN)
alt = L
continue
target = L
break
if (target == T && alt)
target = alt
if(non_xeno_target)
target = non_xeno_target
if (T && ignores_resin) // Will not target resin walls and doors if this is set to true. This is normally only set to true through a directional attack.
if(istype(T, /obj/structure/mineral_door/resin))
var/obj/structure/mineral_door/resin/attacked_door = T
Expand Down

0 comments on commit a3ce6ab

Please sign in to comment.