This commit is contained in:
Letter N
2020-08-09 12:49:14 +08:00
parent 5abcc1c220
commit 4bed3a5349
2 changed files with 120 additions and 6 deletions
@@ -602,7 +602,7 @@
var/obj/item/projectile/A
//any emagged turrets drains 2x power and uses a different projectile?
if(mode == TURRET_STUN)
if(nonlethal_projectile && C && C.resting)
if(nonlethal_projectile && target?.resting)
use_power(reqpower*0.5)
A = new nonlethal_projectile(T)
playsound(loc, nonlethal_projectile_sound, 75, 1)