Fixes SM getting energy when hit in space. (#1723)
This commit is contained in:
committed by
kevinz000
parent
4bacc78e26
commit
83da8141f4
@@ -426,7 +426,7 @@
|
||||
|
||||
/obj/machinery/power/supermatter_shard/bullet_act(obj/item/projectile/Proj)
|
||||
var/turf/L = loc
|
||||
if(!istype(L)) // We don't run process() when we are in space
|
||||
if(!istype(L) || isspaceturf(L)) // We don't run process() when we are in space
|
||||
return FALSE // This stops people from being able to really power up the supermatter
|
||||
// Then bring it inside to explode instantly upon landing on a valid turf.
|
||||
if(!istype(Proj.firer, /obj/machinery/power/emitter))
|
||||
|
||||
Reference in New Issue
Block a user