foundryvtt / dnd5e

An implementation of the 5th Edition game system for Foundry Virtual Tabletop (http://foundryvtt.com).
MIT License
326 stars 219 forks source link

Add a way to filter spells to just the "castable" ones #2905

Open kaelad02 opened 8 months ago

kaelad02 commented 8 months ago

In previous versions (I retested on 2.3.1), you could filter spells on a PC's sheet by Prepared to only show the spells they prepared. In addition to the leveled spells that were prepared, it would also show all your cantrips even if they didn't have the Prepared box checked. Now the Prepared filter does not show cantrips. I was thinking of asking for the previous behavior but I think a new "castable" filter would be better.

It be nice if the sheet had a filter that showed all the spells you are able to cast. Those would include all Cantrips, all at-will and innate spells, the prepared, pact magic, and always prepared spells. It could also filter out the spells that there aren't any spell slots or charges left. Or perhaps that could be another filter on its own if it makes sense. Maybe better that way since the filtering seems to be additive (i.e. AND, not OR).

arbron commented 8 months ago

Not a bad idea, but I will say the reason that cantrips are filtered out with prepared is to support something like Cantrip Formulas, which allows you to swap cantrips out. So the idea is a caster will have all their available cantrips on their sheet, and only prepare the ones they have for the day.

kaelad02 commented 8 months ago

We could also use the main Play/Edit toggle that's on the sheet. Meaning when in Play mode, only show the castable spells and when in Edit mode show them all. I'm not sure it's better or not, just a thought I had when I first read about the Play/Edit modes.

Fyorl commented 1 week ago

Copying from duplicate issue:

Originally in GitLab by @zjennings1

In the spellbook on the character sheet, I would propose changing the name of the "Prepared" filter to "Available", or "Able to Cast", or "Available to Cast" or similar. Then include the following in the filter:

  • All cantrips
  • All prepared spells (even if they don't have slots, so they can be upcast)
  • All at-will spells for which the PC has uses remaining
  • All pact magic spells for which the PC has slots (I have no experience with pact magic. There may be nuances I'm not aware of.)
  • All innate spellcasting spells

A minor issue that brought me to this suggestion:

At-will spells don't show up in the "prepared" filter unless they are marked as prepared in the spell details.