mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
faction check proc instead
This commit is contained in:
@@ -188,9 +188,8 @@
|
||||
|
||||
if(istype(the_target, /obj/machinery/porta_turret))
|
||||
var/obj/machinery/porta_turret/P = the_target
|
||||
for(var/turret_faction in P.faction)
|
||||
if(turret_faction in faction)
|
||||
return FALSE
|
||||
if(P.in_faction(src)) //Don't attack if the turret is in the same faction
|
||||
return FALSE
|
||||
if(P.has_cover &&!P.raised) //Don't attack invincible turrets
|
||||
return FALSE
|
||||
if(P.stat & BROKEN) //Or turrets that are already broken
|
||||
|
||||
Reference in New Issue
Block a user