Avrae-Customizations icon indicating copy to clipboard operation
Avrae-Customizations copied to clipboard

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

Open mwhouser opened this issue 5 months ago • 0 comments

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 avatar Sep 14 '24 17:09 mwhouser