yogstation13 / yogstation-classic

Yogstation13's classic code source.
http://www.yogstation.net
GNU Affero General Public License v3.0
12 stars 37 forks source link

Taser can be fired infinitely when it's mode is switched between firing #1231

Closed X-TheDark closed 8 years ago

X-TheDark commented 8 years ago

Expected Behaviour

Taser has limited shots, even when you switch the ammo type.

Actual Behaviour

Taser refunds the chambered round, but the energy is only used after actually firing. Chambering the round is a free action.

Steps to reproduce the problem

  1. Get Advanced Taser (the one that fires electrodes and disabler beams).
  2. Fire taser in stun mode (most noticeable, since it costs 1/5 of the power cell)
  3. Switch mode to disabler and then back to stun.
  4. Enjoy your energy refund (only works once, so you have to switch between each shot).