From b37d4c1d41a0d85830fa8234c9d0a517548e90db Mon Sep 17 00:00:00 2001 From: ClairionCM <115504494+ClairionCM@users.noreply.github.com> Date: Thu, 31 Aug 2023 21:59:07 +0200 Subject: [PATCH] Infinite Flare bugfix! (#4293) # About the pull request Fixes a flare gun bug where you would be able to do some funky stuff with unloading while doing the unique action, causing you to be able to unload infinite flares from the flare gun. # Explain why it's good for the game Bug bad # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: fix: Fixes an infinite flare bug /:cl: --- code/modules/projectiles/guns/specialist.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/projectiles/guns/specialist.dm b/code/modules/projectiles/guns/specialist.dm index 7708032c5436..d93080bbbc99 100644 --- a/code/modules/projectiles/guns/specialist.dm +++ b/code/modules/projectiles/guns/specialist.dm @@ -1486,6 +1486,9 @@ if(!do_after(user, 1 SECONDS, INTERRUPT_ALL, BUSY_ICON_GENERIC)) return + if(!current_mag || !current_mag.current_rounds) + return + current_mag.current_rounds-- flare_turf.ceiling_debris()