Croebh / Avrae-Customizations

A place for me to store and update all of my Avrae aliases and customizations.
GNU General Public License v3.0
28 stars 23 forks source link

[Bug] `!font` alias is not using or creating spell slots #79

Closed smita313 closed 2 years ago

smita313 commented 2 years ago

What alias/snippet is this for? !font

Describe the bug !font spend <level> and !font create <level> are not correctly modifying spell slot counters

To Reproduce On a sorcerer character with Font of Magic, attempt !font spend 1 to create 1 Sorcery Point. See that no spell slot was actually spent. On a sorcerer character with Font of Magic, attempt !font create 1 to create a 1st level spell slot. See that no spell slot was actually created.

Expected behavior When !font spend <level> is used, sorcery points should be created and one spell slot should be used. When !font create <level> is used, the correct number of sorcery points to create one spell slot should be used and the spell slot should be created.

Screenshots

Screen Shot 2022-02-20 at 11 57 49 AM

Here, the user spent a 2nd level spell slot with Chromatic Orb and has 2 remaining. Then the user attempts to spend a 2nd level spell slot to create 2 sorcery points. The sorcery points are created, but the number of spell slots remaining is not changed.

Additional context It appears that the !font alias was modified 3 days ago, so it seems like this was newly introduced. Thanks for taking the time to look into this!

Croebh commented 2 years ago

Fixed!