Skip to content

Paladin spell slots not seeded on character_manage create #44

@Mnehmos

Description

@Mnehmos

Summary

Creating a level-4 paladin via character_manage create returns spellSlots with all levels at 0/0, even though a level-4 paladin should have 3 first-level slots and 2 second-level slots per 5e PHB.

Wizard and cleric created at the same level got their level-1 slots correctly. Wizard also missed level-2 slots.

Reproduction

{ "action": "create", "class": "paladin", "level": 4, "name": "Test", "characterType": "pc" }

Result spellSlots.level1.max == 0. Expected == 3.

Calling cast_spell bless then fails with No level 1+ spell slots available.

Expected

Class-specific spell slot tables applied at character create / level_up. Per PHB:

  • Paladin (half-caster): L2: 2/0/0, L3: 3/0/0, L4: 3/0/0, L5: 4/2/0, ...
  • Wizard (full caster): L4: 4/3/0/0, L5: 4/3/2/0, ...
  • Cleric (full caster): same as wizard.

Acceptance

  • Spell slot table lookup applied to all caster classes on create + level_up.
  • Half-caster classes (paladin, ranger, artificer) covered.
  • Tests: create at L1\u2013L9 for paladin/wizard/cleric, assert correct slot counts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions