# Spells

Spellcasting Class
  [% for spell_class in character.spellcasting_classes %] [% if not loop.first %] / [% endif %] [[ spell_class.name ]] [[ spell_class.level ]] [% endfor %]
Spellcasting Abilitiy
  [% for spell_class in character.spellcasting_classes %] [% if not loop.first %] / [% endif %] [[ spell_class.spellcasting_ability | stat_abbreviation ]] [% endfor %]
Spell Save DC
  [% for spell_class in character.spellcasting_classes %] [% if not loop.first %] / [% endif %] [% set spell_save_dc = character.spell_save_dc(spell_class) %] [[ spell_save_dc ]] [% endfor %]
Spell Attack Bonus
  [% for spell_class in character.spellcasting_classes %] [% if not loop.first %] / [% endif %] [% set spell_atk_bonus = character.spell_attack_bonus(spell_class) %] [[ spell_atk_bonus | mod_str ]] [% endfor %]

## List of Spells

(✓ = prepared)

[% for level, spells in character.spells | groupby("level") %]

### [% if level == 0 %]Cantrips[% else %]Level [[ level ]] Spells[% endif %]

[% if level > 0 %] [% set spell_slots = character.spell_slots(level) %]

Spell slots
  [[ spell_slots ]]

[% endif %]

[% for spell in spells %]
- [[ spell ]]
[% endfor %]

[% endfor %] [% from "spellblock.html" import spellblock %] [% for spl in character.spells %] [[ spellblock(spl, id_base="spells") ]] [% endfor %]