missing power check

people could still use this without any charge
This commit is contained in:
Walter0o
2014-07-16 15:13:13 +02:00
committed by ZomgPonies
parent ab8b3d25c4
commit 8e9b1b1b95
@@ -81,7 +81,7 @@
/obj/item/weapon/anodevice/process()
if(activated)
if(inserted_battery && inserted_battery.battery_effect)
if(inserted_battery && inserted_battery.battery_effect && (inserted_battery.stored_charge > 0) )
//make sure the effect is active
if(!inserted_battery.battery_effect.activated)
inserted_battery.battery_effect.ToggleActivate(1)