Skip to content

Commit

Permalink
Infinite Flare bugfix! (#4293)
Browse files Browse the repository at this point in the history
# 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.
<!-- Remove this text and explain what the purpose of your PR is.

Mention if you have tested your changes. If you changed a map, make sure
you used the mapmerge tool.
If this is an Issue Correction, you can type "Fixes Issue #169420" to
link the PR to the corresponding Issue number #169420.

Remember: something that is self-evident to you might not be to others.
Explain your rationale fully, even if you feel it goes without saying.
-->

# Explain why it's good for the game
Bug bad
# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
fix: Fixes an infinite flare bug
/:cl:
  • Loading branch information
ClairionCM committed Aug 31, 2023
1 parent dacc152 commit b37d4c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/projectiles/guns/specialist.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b37d4c1

Please sign in to comment.