Merge pull request #37268 from ShizCalev/scp-ruin-fix
Fixes SCP ruin turret faction, fixes hostile mobs attacking turrets in the same faction
This commit is contained in:
committed by
CitadelStationBot
parent
f98040513a
commit
44df2b780e
@@ -188,7 +188,7 @@
|
||||
|
||||
if(istype(the_target, /obj/machinery/porta_turret))
|
||||
var/obj/machinery/porta_turret/P = the_target
|
||||
if(P.faction in faction)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user