From b855a90d2bb3c8c1f67384028aba83426dcd7140 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Fri, 17 Sep 2021 22:21:14 +0200 Subject: [PATCH] [MIRROR] hopefully fixes buckshots only shooting one projectile (#8227) * hopefully fixes buckshots only shooting one projectile (#61464) * hopefully fixes buckshots only shooting one projectile Co-authored-by: Seris02 <49109742+Seris02@users.noreply.github.com> --- code/modules/projectiles/ammunition/_firing.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/projectiles/ammunition/_firing.dm b/code/modules/projectiles/ammunition/_firing.dm index 5993089b43e..c89763ef9f7 100644 --- a/code/modules/projectiles/ammunition/_firing.dm +++ b/code/modules/projectiles/ammunition/_firing.dm @@ -66,8 +66,9 @@ if(!direct_target) var/modifiers = params2list(params) loaded_projectile.preparePixelProjectile(target, user, modifiers, spread) - loaded_projectile.fire(null, direct_target) + var/obj/projectile/loaded_projectile_cache = loaded_projectile loaded_projectile = null + loaded_projectile_cache.fire(null, direct_target) return TRUE /obj/item/ammo_casing/proc/spread(turf/target, turf/current, distro)