Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] !use does not support -ccnum -1 #117

Open
mwhouser opened this issue Sep 14, 2024 · 0 comments
Open

[Bug] !use does not support -ccnum -1 #117

mwhouser opened this issue Sep 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mwhouser
Copy link

What alias/snippet is this for?

!use

Describe the bug

When using -cc and -ccnum -1, it attempts to increment the counter rather than decrement.

To Reproduce

  1. Create a counter for "Wand of Paralysis": !cc create "Wand of Paralysis" -reset long -min 0 -max 7 -value 7 -type bubble
  2. Try decrementing the counter when using !use: !use -save con -dc 15 -title "[name] uses their Wand of Paralysis" -effect "Paralyzed||10" -cc "Wand of Paralysis" -ccnum -1

It fails attempting to increment the counter:

Consumable out of Bounds
Unfortunately, one or more of your consumables would be put out of bounds by this action:
Wand of Paralysis (+1): ◉◉◉◉◉◉◉

However, if the CC doesn't exist, it shows -1:

Consumable out of Bounds
Unfortunately, one or more of your consumables would be put out of bounds by this action:
Wand of Paralysis1 (-1): Counter could not be found.

Expected behavior

Correctly decrement the counter.

@mwhouser mwhouser added the bug Something isn't working label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant