CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.65k stars 4.18k forks source link

"Pounce" spell consumes stamina regardless of if you actually go through with the pounce or not #74453

Open BalthazarArgall opened 5 months ago

BalthazarArgall commented 5 months ago

Describe the bug

When you activate "Pounce" you get into aiming mode to aim the pounce but you can cancel it, the issue is that stamina is consumed regardless, if you activate/cancel pounce repeatedly you can use up all your stamina and go out of breath even if you never actually do anything.

Attach save file

N/A

Steps to reproduce

  1. Get the pounce mutation
  2. Activate pounce
  3. Cancel while in aim mode
  4. Repeat steps 2/3 until out of breath

Expected behavior

Not doing anything should not consume anything. Stamina should only be consumed if/when you pounce.

Screenshots

No response

Versions and configuration

Additional context

Although I only tested the "Pounce" (EOC_FELINE_LEAP) mutation, I expect other mutations to exhibit this behavior, other leap mutations but maybe slime spray and ink glands as well.

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.