Proximity flag at preattack

This commit is contained in:
dylanstrategie
2015-04-03 18:27:45 +02:00
parent 7584b4b0f0
commit d7aa090dd9

View File

@@ -39,6 +39,9 @@
//Redirect the attack only if it's a machine, otherwise don't bother
/obj/item/device/component_exchanger/preattack(var/atom/A, var/mob/user, proximity_flag)
if(!proximity_flag)
return
if(istype(A, /obj/machinery))
var/obj/machinery/M = A