- Seed now resets the database and seeds the Aldenfell campaign from the
campaign book: admin DM user, default weapons, locations, bestiary,
pre-built encounters, and DM/shared notes
- Default weapon/spell/monster library, character profile fields,
locations and dice mode (new migration)
- Party overview page, pagination, info tips, build preview calc
- Remove stale demo-login hint; notes preserve line breaks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
// Default monster library — a starter bestiary spanning CR 0 to CR 5,
// offered to any campaign so a DM isn't hand-typing common enemies from
// scratch. Shape matches the `Monster` Prisma model minus `id`/`campaignId`,
// plus a stable `key` for "add to campaign" lookups.
constMONSTER_LIBRARY=[
{key:'commoner',name:'Commoner',challengeRating:'0',ac:10,maxHp:4,speed:30,strScore:10,dexScore:10,conScore:10,intScore:10,wisScore:10,chaScore:10,attackBonus:2,damageDice:'1d4',specialTrait:null,notes:'An ordinary villager, armed with a club.'},
{key:'stirge',name:'Stirge',challengeRating:'1/8',ac:12,maxHp:2,speed:10,strScore:4,dexScore:16,conScore:11,intScore:2,wisScore:8,chaScore:6,attackBonus:5,damageDice:'1d4',specialTrait:'Blood Drain',notes:'Proboscis; attaches and drains hp on a hit.'},
{key:'wolf',name:'Wolf',challengeRating:'1/4',ac:13,maxHp:11,speed:40,strScore:12,dexScore:15,conScore:12,intScore:3,wisScore:12,chaScore:6,attackBonus:4,damageDice:'2d4+2',specialTrait:'Pack Tactics',notes:'Bite; can knock prone on a hit.'},
{key:'giant-wolf-spider',name:'Giant Wolf Spider',challengeRating:'1/4',ac:13,maxHp:11,speed:40,strScore:12,dexScore:16,conScore:13,intScore:3,wisScore:12,chaScore:4,attackBonus:3,damageDice:'1d6+1',specialTrait:'Poison bite',notes:'Spider climb; bite deals poison damage.'},
{key:'scout',name:'Scout',challengeRating:'1/2',ac:13,maxHp:16,speed:30,strScore:11,dexScore:14,conScore:12,intScore:11,wisScore:13,chaScore:11,attackBonus:4,damageDice:'1d6+2',specialTrait:'Keen Hearing and Sight',notes:'Shortsword or longbow.'},
{key:'lizardfolk',name:'Lizardfolk',challengeRating:'1/2',ac:15,maxHp:22,speed:30,strScore:15,dexScore:10,conScore:13,intScore:7,wisScore:12,chaScore:7,attackBonus:3,damageDice:'1d6+1',specialTrait:'Hold Breath',notes:'Club or spear, piercing damage.'},
{key:'black-bear',name:'Black Bear',challengeRating:'1/2',ac:11,maxHp:19,speed:40,strScore:15,dexScore:10,conScore:14,intScore:2,wisScore:12,chaScore:7,attackBonus:3,damageDice:'1d6+2',specialTrait:'Keen Smell',notes:'Bite and claw attacks.'},
{key:'giant-spider',name:'Giant Spider',challengeRating:'1',ac:14,maxHp:26,speed:30,strScore:14,dexScore:16,conScore:12,intScore:2,wisScore:11,chaScore:4,attackBonus:5,damageDice:'1d8+3',specialTrait:'Web, poison bite',notes:'Bite deals piercing plus poison damage.'},
{key:'ghoul',name:'Ghoul',challengeRating:'1',ac:12,maxHp:22,speed:30,strScore:13,dexScore:15,conScore:10,intScore:7,wisScore:10,chaScore:6,attackBonus:2,damageDice:'2d6+2',specialTrait:'Claws paralyze on a hit',notes:'Undead.'},
{key:'dire-wolf',name:'Dire Wolf',challengeRating:'1',ac:14,maxHp:37,speed:50,strScore:17,dexScore:15,conScore:15,intScore:3,wisScore:12,chaScore:7,attackBonus:5,damageDice:'2d6+3',specialTrait:'Pack Tactics',notes:'Bite; can knock prone on a hit.'},
{key:'brown-bear',name:'Brown Bear',challengeRating:'1',ac:11,maxHp:34,speed:40,strScore:19,dexScore:10,conScore:16,intScore:2,wisScore:13,chaScore:7,attackBonus:5,damageDice:'1d8+5',specialTrait:'Keen Smell',notes:'Multiattack: bite and claws.'},
{key:'ochre-jelly',name:'Ochre Jelly',challengeRating:'2',ac:8,maxHp:45,speed:10,strScore:15,dexScore:6,conScore:14,intScore:2,wisScore:6,chaScore:1,attackBonus:5,damageDice:'2d6+3',specialTrait:'Amorphous, splits when damaged by slashing',notes:'Pseudopod, bludgeoning plus acid damage.'},
{key:'owlbear',name:'Owlbear',challengeRating:'3',ac:13,maxHp:59,speed:40,strScore:20,dexScore:12,conScore:17,intScore:3,wisScore:12,chaScore:7,attackBonus:7,damageDice:'1d10+5',specialTrait:'Keen Sight and Smell',notes:'Multiattack: beak and claws.'},
{key:'wight',name:'Wight',challengeRating:'3',ac:14,maxHp:45,speed:30,strScore:15,dexScore:14,conScore:16,intScore:10,wisScore:13,chaScore:15,attackBonus:4,damageDice:'1d8+2',specialTrait:'Life Drain, Sunlight Sensitivity',notes:'Longsword or life-draining touch.'},
{key:'werewolf',name:'Werewolf',challengeRating:'3',ac:12,maxHp:58,speed:30,strScore:15,dexScore:13,conScore:14,intScore:10,wisScore:11,chaScore:10,attackBonus:4,damageDice:'1d8+2',specialTrait:'Shapechanger, regeneration',notes:'Bite (hybrid/wolf form) or multiattack claws + bite.'},
{key:'displacer-beast',name:'Displacer Beast',challengeRating:'3',ac:13,maxHp:85,speed:40,strScore:18,dexScore:15,conScore:16,intScore:6,wisScore:12,chaScore:8,attackBonus:7,damageDice:'2d6+4',specialTrait:'Displacement (attacks vs. it have disadvantage)',notes:'Multiattack: two tentacles.'},
{key:'ettin',name:'Ettin',challengeRating:'4',ac:12,maxHp:85,speed:40,strScore:21,dexScore:8,conScore:17,intScore:6,wisScore:10,chaScore:8,attackBonus:7,damageDice:'2d8+4',specialTrait:'Two heads — advantage on Perception, can’t be surprised easily',notes:'Multiattack: battleaxe and morningstar.'},
{key:'troll',name:'Troll',challengeRating:'5',ac:15,maxHp:84,speed:30,strScore:18,dexScore:13,conScore:20,intScore:7,wisScore:9,chaScore:7,attackBonus:7,damageDice:'2d6+4',specialTrait:'Regeneration (vulnerable to fire/acid)',notes:'Multiattack: bite and two claws.'},
{key:'wraith',name:'Wraith',challengeRating:'5',ac:13,maxHp:67,speed:0,strScore:6,dexScore:16,conScore:16,intScore:12,wisScore:14,chaScore:15,attackBonus:6,damageDice:'4d8+4',specialTrait:'Incorporeal, life drain, flying 60 ft',notes:'Undead; life drain touch attack.'},
// Default spell library — a broad SRD-style spell list (cantrips through 5th
// level) spanning every spellcasting class, offered to any campaign so a DM
// isn't hand-typing spells from scratch. Shape matches the `Spell` Prisma
// model minus `id`/`campaignId`, plus a stable `key` for "add to campaign"
// lookups and a `classes` tag array the library picker can filter by.
constSPELL_LIBRARY=[
// ---- Cantrips (level 0) ----
{key:'acid-splash',name:'Acid Splash',level:0,school:'Conjuration',castingTime:'1 action',range:'60 feet',duration:'Instantaneous',description:'Hurl a bubble of acid at one or two creatures within 5 feet of each other.',classes:['SORCERER','WIZARD']},
{key:'blade-ward',name:'Blade Ward',level:0,school:'Abjuration',castingTime:'1 action',range:'Self',duration:'1 round',description:'Resist bludgeoning, piercing, and slashing damage until your next turn.',classes:['BARD','SORCERER','WARLOCK','WIZARD']},
{key:'chill-touch',name:'Chill Touch',level:0,school:'Necromancy',castingTime:'1 action',range:'120 feet',duration:'1 round',description:'A ghostly hand deals necrotic damage and prevents healing.',classes:['SORCERER','WARLOCK','WIZARD']},
{key:'dancing-lights',name:'Dancing Lights',level:0,school:'Illusion',castingTime:'1 action',range:'120 feet',duration:'Concentration, up to 1 minute',description:'Create up to four torch-sized lights that you can move.',classes:['BARD','SORCERER','WIZARD']},
{key:'druidcraft',name:'Druidcraft',level:0,school:'Transmutation',castingTime:'1 action',range:'30 feet',duration:'Instantaneous',description:'A small, harmless nature-flavored effect: predict weather, sprout a seedling, and the like.',classes:['DRUID']},
{key:'eldritch-blast',name:'Eldritch Blast',level:0,school:'Evocation',castingTime:'1 action',range:'120 feet',duration:'Instantaneous',description:'A beam of crackling energy strikes one creature for force damage.',classes:['WARLOCK']},
{key:'fire-bolt',name:'Fire Bolt',level:0,school:'Evocation',castingTime:'1 action',range:'120 feet',duration:'Instantaneous',description:'Hurl a mote of fire that deals fire damage on a hit.',classes:['SORCERER','WIZARD']},
{key:'friends',name:'Friends',level:0,school:'Enchantment',castingTime:'1 action',range:'Self',duration:'Concentration, up to 1 minute',description:'Advantage on Charisma checks against one creature for the duration.',classes:['BARD','SORCERER','WARLOCK','WIZARD']},
{key:'guidance',name:'Guidance',level:0,school:'Divination',castingTime:'1 action',range:'Touch',duration:'Concentration, up to 1 minute',description:'Add 1d4 to one ability check of your choice.',classes:['CLERIC','DRUID']},
{key:'light',name:'Light',level:0,school:'Evocation',castingTime:'1 action',range:'Touch',duration:'1 hour',description:'An object sheds bright light in a 20-foot radius.',classes:['BARD','CLERIC','SORCERER','WIZARD']},
{key:'mage-hand',name:'Mage Hand',level:0,school:'Conjuration',castingTime:'1 action',range:'30 feet',duration:'1 minute',description:'A spectral hand manipulates objects, opens doors, and carries small items.',classes:['BARD','SORCERER','WARLOCK','WIZARD']},
{key:'mending',name:'Mending',level:0,school:'Transmutation',castingTime:'1 minute',range:'Touch',duration:'Instantaneous',description:'Repairs a single break or tear in an object.',classes:['BARD','CLERIC','DRUID','SORCERER','WIZARD']},
{key:'message',name:'Message',level:0,school:'Transmutation',castingTime:'1 action',range:'120 feet',duration:'1 round',description:'Whisper a message to a target that only they can hear, with a whispered reply.',classes:['BARD','SORCERER','WIZARD']},
{key:'minor-illusion',name:'Minor Illusion',level:0,school:'Illusion',castingTime:'1 action',range:'30 feet',duration:'1 minute',description:'Create a sound or an image of an object for the duration.',classes:['BARD','SORCERER','WARLOCK','WIZARD']},
{key:'poison-spray',name:'Poison Spray',level:0,school:'Conjuration',castingTime:'1 action',range:'10 feet',duration:'Instantaneous',description:'Project a puff of noxious gas that deals poison damage.',classes:['DRUID','SORCERER','WARLOCK','WIZARD']},
{key:'prestidigitation',name:'Prestidigitation',level:0,school:'Transmutation',castingTime:'1 action',range:'10 feet',duration:'Up to 1 hour',description:'A minor magical trick — light a candle, clean an object, chill or warm food, and the like.',classes:['BARD','SORCERER','WARLOCK','WIZARD']},
{key:'produce-flame',name:'Produce Flame',level:0,school:'Conjuration',castingTime:'1 action',range:'Self',duration:'10 minutes',description:'A flickering flame in your hand sheds light and can be hurled for fire damage.',classes:['DRUID']},
{key:'ray-of-frost',name:'Ray of Frost',level:0,school:'Evocation',castingTime:'1 action',range:'60 feet',duration:'Instantaneous',description:'A ray of freezing energy deals cold damage and slows the target.',classes:['SORCERER','WIZARD']},
{key:'resistance',name:'Resistance',level:0,school:'Abjuration',castingTime:'1 action',range:'Touch',duration:'Concentration, up to 1 minute',description:'The target adds 1d4 to one saving throw of its choice.',classes:['CLERIC','DRUID']},
{key:'sacred-flame',name:'Sacred Flame',level:0,school:'Evocation',castingTime:'1 action',range:'60 feet',duration:'Instantaneous',description:'Radiant flame descends on a creature that must succeed a Dexterity save or take damage.',classes:['CLERIC']},
{key:'shillelagh',name:'Shillelagh',level:0,school:'Transmutation',castingTime:'1 bonus action',range:'Touch',duration:'1 minute',description:'Imbue a club or quarterstaff with magic, using Wisdom for its attack and damage.',classes:['DRUID']},
{key:'shocking-grasp',name:'Shocking Grasp',level:0,school:'Evocation',castingTime:'1 action',range:'Touch',duration:'Instantaneous',description:'Lightning springs from your hand, dealing damage and preventing reactions.',classes:['SORCERER','WIZARD']},
{key:'spare-the-dying',name:'Spare the Dying',level:0,school:'Necromancy',castingTime:'1 action',range:'Touch',duration:'Instantaneous',description:'A creature you touch that has 0 hit points becomes stable.',classes:['CLERIC']},
{key:'thorn-whip',name:'Thorn Whip',level:0,school:'Transmutation',castingTime:'1 action',range:'30 feet',duration:'Instantaneous',description:'A vine-like whip deals damage and drags the target closer.',classes:['DRUID']},
{key:'true-strike',name:'True Strike',level:0,school:'Divination',castingTime:'1 action',range:'30 feet',duration:'Concentration, up to 1 round',description:'Gain advantage on your next attack roll against the target.',classes:['BARD','SORCERER','WARLOCK','WIZARD']},
{key:'vicious-mockery',name:'Vicious Mockery',level:0,school:'Enchantment',castingTime:'1 action',range:'60 feet',duration:'Instantaneous',description:'A string of insults deals psychic damage and imposes disadvantage on the target’s next attack.',classes:['BARD']},
// ---- Level 1 ----
{key:'alarm',name:'Alarm',level:1,school:'Abjuration',castingTime:'1 minute',range:'30 feet',duration:'8 hours',description:'Set an audible or mental alarm against intruders.',classes:['RANGER','WIZARD']},
{key:'animal-friendship',name:'Animal Friendship',level:1,school:'Enchantment',castingTime:'1 action',range:'30 feet',duration:'24 hours',description:'Convince a beast that you mean it no harm.',classes:['BARD','DRUID','RANGER']},
{key:'bane',name:'Bane',level:1,school:'Enchantment',castingTime:'1 action',range:'30 feet',duration:'Concentration, up to 1 minute',description:'Up to three creatures subtract 1d4 from attack rolls and saves.',classes:['BARD','CLERIC']},
{key:'bless',name:'Bless',level:1,school:'Enchantment',castingTime:'1 action',range:'30 feet',duration:'Concentration, up to 1 minute',description:'Up to three creatures add 1d4 to attack rolls and saves.',classes:['CLERIC','PALADIN']},
{key:'burning-hands',name:'Burning Hands',level:1,school:'Evocation',castingTime:'1 action',range:'Self (15-foot cone)',duration:'Instantaneous',description:'A thin sheet of flame sweeps out from your hands.',classes:['SORCERER','WIZARD']},
{key:'charm-person',name:'Charm Person',level:1,school:'Enchantment',castingTime:'1 action',range:'30 feet',duration:'1 hour',description:'A humanoid you can see regards you as a friendly acquaintance.',classes:['BARD','DRUID','SORCERER','WARLOCK','WIZARD']},
{key:'color-spray',name:'Color Spray',level:1,school:'Illusion',castingTime:'1 action',range:'Self (15-foot cone)',duration:'1 round',description:'A dazzling array of flashing colors can blind weak creatures.',classes:['SORCERER','WIZARD']},
{key:'command',name:'Command',level:1,school:'Enchantment',castingTime:'1 action',range:'60 feet',duration:'1 round',description:'Speak a one-word command a creature must obey.',classes:['CLERIC','PALADIN']},
{key:'comprehend-languages',name:'Comprehend Languages',level:1,school:'Divination',castingTime:'1 action',range:'Self',duration:'1 hour',description:'Understand any spoken or written language.',classes:['BARD','SORCERER','WARLOCK','WIZARD']},
{key:'cure-wounds',name:'Cure Wounds',level:1,school:'Evocation',castingTime:'1 action',range:'Touch',duration:'Instantaneous',description:'A creature you touch regains hit points.',classes:['BARD','CLERIC','DRUID','PALADIN','RANGER']},
{key:'detect-magic',name:'Detect Magic',level:1,school:'Divination',castingTime:'1 action',range:'Self',duration:'Concentration, up to 10 minutes',description:'Sense the presence of magic within 30 feet.',classes:['BARD','CLERIC','DRUID','PALADIN','RANGER','SORCERER','WIZARD']},
{key:'disguise-self',name:'Disguise Self',level:1,school:'Illusion',castingTime:'1 action',range:'Self',duration:'1 hour',description:'Change your appearance, including clothing and gear.',classes:['BARD','SORCERER','WIZARD']},
{key:'entangle',name:'Entangle',level:1,school:'Conjuration',castingTime:'1 action',range:'90 feet',duration:'Concentration, up to 1 minute',description:'Grasping weeds and vines sprout in a 20-foot square.',classes:['DRUID','RANGER']},
{key:'faerie-fire',name:'Faerie Fire',level:1,school:'Evocation',castingTime:'1 action',range:'60 feet',duration:'Concentration, up to 1 minute',description:'Objects in a 20-foot cube are outlined in light, granting attackers advantage.',classes:['DRUID']},
{key:'feather-fall',name:'Feather Fall',level:1,school:'Transmutation',castingTime:'1 reaction',range:'60 feet',duration:'1 minute',description:'Falling creatures slow to a gentle descent.',classes:['BARD','SORCERER','WIZARD']},
{key:'fog-cloud',name:'Fog Cloud',level:1,school:'Conjuration',castingTime:'1 action',range:'120 feet',duration:'Concentration, up to 1 hour',description:'A 20-foot-radius sphere of fog heavily obscures the area.',classes:['DRUID','RANGER','SORCERER','WIZARD']},
{key:'guiding-bolt',name:'Guiding Bolt',level:1,school:'Evocation',castingTime:'1 action',range:'120 feet',duration:'1 round',description:'A flash of light streaks to a target, dealing radiant damage.',classes:['CLERIC']},
{key:'healing-word',name:'Healing Word',level:1,school:'Evocation',castingTime:'1 bonus action',range:'60 feet',duration:'Instantaneous',description:'A creature you can see regains hit points.',classes:['BARD','CLERIC','DRUID']},
{key:'hunters-mark',name:"Hunter's Mark",level:1,school:'Divination',castingTime:'1 bonus action',range:'90 feet',duration:'Concentration, up to 1 hour',description:'Deal extra damage to a marked target and track it magically.',classes:['RANGER']},
{key:'identify',name:'Identify',level:1,school:'Divination',castingTime:'1 minute',range:'Touch',duration:'Instantaneous',description:'Learn the properties of a magic item or the nature of a spell affecting a creature.',classes:['BARD','WIZARD']},
{key:'longstrider',name:'Longstrider',level:1,school:'Transmutation',castingTime:'1 action',range:'Touch',duration:'1 hour',description:"A creature's speed increases by 10 feet.",classes:['BARD','DRUID','RANGER','WIZARD']},
{key:'mage-armor',name:'Mage Armor',level:1,school:'Abjuration',castingTime:'1 action',range:'Touch',duration:'8 hours',description:"A protective magical force gives the target a base AC of 13 + Dex modifier.",classes:['SORCERER','WIZARD']},
{key:'magic-missile',name:'Magic Missile',level:1,school:'Evocation',castingTime:'1 action',range:'120 feet',duration:'Instantaneous',description:'Three darts of magical force each strike a target unerringly.',classes:['SORCERER','WIZARD']},
{key:'protection-from-evil-and-good',name:'Protection from Evil and Good',level:1,school:'Abjuration',castingTime:'1 action',range:'Touch',duration:'Concentration, up to 10 minutes',description:'Protect a creature from aberrations, celestials, elementals, fey, fiends, and undead.',classes:['CLERIC','PALADIN','WARLOCK','WIZARD']},
{key:'shield',name:'Shield',level:1,school:'Abjuration',castingTime:'1 reaction',range:'Self',duration:'1 round',description:'An invisible barrier grants +5 AC until the start of your next turn.',classes:['SORCERER','WIZARD']},
{key:'sleep',name:'Sleep',level:1,school:'Enchantment',castingTime:'1 action',range:'90 feet',duration:'1 minute',description:'Creatures in a 20-foot radius fall unconscious, weakest hit points first.',classes:['BARD','SORCERER','WIZARD']},
{key:'speak-with-animals',name:'Speak with Animals',level:1,school:'Divination',castingTime:'1 action',range:'Self',duration:'10 minutes',description:'Comprehend and verbally communicate with beasts.',classes:['BARD','DRUID','RANGER']},
{key:'thunderwave',name:'Thunderwave',level:1,school:'Evocation',castingTime:'1 action',range:'Self (15-foot cube)',duration:'Instantaneous',description:'A wave of thunderous force sweeps out, damaging and pushing creatures.',classes:['BARD','DRUID','SORCERER','WIZARD']},
{key:'witch-bolt',name:'Witch Bolt',level:1,school:'Evocation',castingTime:'1 action',range:'30 feet',duration:'Concentration, up to 1 minute',description:'A beam of lightning forms a sustained arc that damages the target each turn.',classes:['SORCERER','WARLOCK','WIZARD']},
// ---- Level 2 ----
{key:'aid',name:'Aid',level:2,school:'Abjuration',castingTime:'1 action',range:'30 feet',duration:'8 hours',description:'Bolster allies with additional hit points.',classes:['CLERIC','PALADIN']},
{key:'alter-self',name:'Alter Self',level:2,school:'Transmutation',castingTime:'1 action',range:'Self',duration:'Concentration, up to 1 hour',description:'Assume a variety of minor physical changes.',classes:['SORCERER','WIZARD']},
{key:'animal-messenger',name:'Animal Messenger',level:2,school:'Enchantment',castingTime:'1 action',range:'30 feet',duration:'24 hours',description:'Send a tiny animal to deliver a short message.',classes:['BARD','DRUID','RANGER']},
{key:'blindness-deafness',name:'Blindness/Deafness',level:2,school:'Necromancy',castingTime:'1 action',range:'30 feet',duration:'1 minute',description:'Blind or deafen a creature that fails a Constitution save.',classes:['BARD','CLERIC','SORCERER','WIZARD']},
{key:'blur',name:'Blur',level:2,school:'Illusion',castingTime:'1 action',range:'Self',duration:'Concentration, up to 1 minute',description:'Your outline blurs, giving attackers disadvantage.',classes:['SORCERER','WIZARD']},
{key:'darkvision',name:'Darkvision',level:2,school:'Transmutation',castingTime:'1 action',range:'Touch',duration:'8 hours',description:'Grant a creature darkvision out to 60 feet.',classes:['DRUID','RANGER','SORCERER','WIZARD']},
{key:'enhance-ability',name:'Enhance Ability',level:2,school:'Transmutation',castingTime:'1 action',range:'Touch',duration:'Concentration, up to 1 hour',description:'Grant advantage on checks with one chosen ability.',classes:['BARD','CLERIC','DRUID','SORCERER']},
{key:'enlarge-reduce',name:'Enlarge/Reduce',level:2,school:'Transmutation',castingTime:'1 action',range:'30 feet',duration:'Concentration, up to 1 minute',description:'A creature or object doubles or halves in size.',classes:['SORCERER','WIZARD']},
{key:'flaming-sphere',name:'Flaming Sphere',level:2,school:'Conjuration',castingTime:'1 action',range:'60 feet',duration:'Concentration, up to 1 minute',description:'A 5-foot-diameter sphere of fire rolls where you direct it.',classes:['DRUID','WIZARD']},
{key:'gust-of-wind',name:'Gust of Wind',level:2,school:'Evocation',castingTime:'1 action',range:'Self (60-foot line)',duration:'Concentration, up to 1 minute',description:'A line of strong wind pushes creatures and extinguishes flames.',classes:['DRUID','SORCERER','WIZARD']},
{key:'hold-person',name:'Hold Person',level:2,school:'Enchantment',castingTime:'1 action',range:'60 feet',duration:'Concentration, up to 1 minute',description:'Paralyze a humanoid that fails a Wisdom save.',classes:['BARD','CLERIC','DRUID','SORCERER','WARLOCK','WIZARD']},
{key:'invisibility',name:'Invisibility',level:2,school:'Illusion',castingTime:'1 action',range:'Touch',duration:'Concentration, up to 1 hour',description:'A creature you touch becomes invisible.',classes:['BARD','SORCERER','WARLOCK','WIZARD']},
{key:'lesser-restoration',name:'Lesser Restoration',level:2,school:'Abjuration',castingTime:'1 action',range:'Touch',duration:'Instantaneous',description:'End one disease or condition afflicting the target.',classes:['BARD','CLERIC','DRUID','PALADIN','RANGER']},
{key:'levitate',name:'Levitate',level:2,school:'Transmutation',castingTime:'1 action',range:'60 feet',duration:'Concentration, up to 10 minutes',description:'A creature or object rises vertically and can be moved.',classes:['SORCERER','WIZARD']},
{key:'mirror-image',name:'Mirror Image',level:2,school:'Illusion',castingTime:'1 action',range:'Self',duration:'1 minute',description:'Three illusory duplicates of yourself spring into being.',classes:['SORCERER','WARLOCK','WIZARD']},
{key:'misty-step',name:'Misty Step',level:2,school:'Conjuration',castingTime:'1 bonus action',range:'Self',duration:'Instantaneous',description:'Teleport up to 30 feet in a burst of silvery mist.',classes:['SORCERER','WARLOCK','WIZARD']},
{key:'moonbeam',name:'Moonbeam',level:2,school:'Evocation',castingTime:'1 action',range:'120 feet',duration:'Concentration, up to 1 minute',description:'A silvery beam of pale light shines down in a 5-foot-radius cylinder.',classes:['DRUID']},
{key:'pass-without-trace',name:'Pass without Trace',level:2,school:'Abjuration',castingTime:'1 action',range:'Self',duration:'Concentration, up to 1 hour',description:'The party becomes exceptionally difficult to track.',classes:['DRUID','RANGER']},
{key:'scorching-ray',name:'Scorching Ray',level:2,school:'Evocation',castingTime:'1 action',range:'120 feet',duration:'Instantaneous',description:'Three rays of fire streak toward targets within range.',classes:['SORCERER','WIZARD']},
{key:'shatter',name:'Shatter',level:2,school:'Evocation',castingTime:'1 action',range:'60 feet',duration:'Instantaneous',description:'A sudden loud ringing noise deals thunder damage in a 10-foot-radius sphere.',classes:['BARD','SORCERER','WARLOCK','WIZARD']},
{key:'silence',name:'Silence',level:2,school:'Illusion',castingTime:'1 action',range:'120 feet',duration:'Concentration, up to 10 minutes',description:'No sound can be created within or pass through a 20-foot-radius sphere.',classes:['BARD','CLERIC','RANGER']},
{key:'spider-climb',name:'Spider Climb',level:2,school:'Transmutation',castingTime:'1 action',range:'Touch',duration:'Concentration, up to 1 hour',description:'A creature gains the ability to move on vertical surfaces and ceilings.',classes:['SORCERER','WARLOCK','WIZARD']},
{key:'spiritual-weapon',name:'Spiritual Weapon',level:2,school:'Evocation',castingTime:'1 bonus action',range:'60 feet',duration:'1 minute',description:'A spectral weapon attacks a target and can be moved each turn.',classes:['CLERIC']},
{key:'suggestion',name:'Suggestion',level:2,school:'Enchantment',castingTime:'1 action',range:'30 feet',duration:'Concentration, up to 8 hours',description:'Plant a reasonable-sounding suggestion in a creature’s mind.',classes:['BARD','SORCERER','WARLOCK','WIZARD']},
{key:'web',name:'Web',level:2,school:'Conjuration',castingTime:'1 action',range:'60 feet',duration:'Concentration, up to 1 hour',description:'Thick, sticky webs fill a 20-foot cube.',classes:['SORCERER','WIZARD']},
{key:'zone-of-truth',name:'Zone of Truth',level:2,school:'Enchantment',castingTime:'1 action',range:'60 feet',duration:'10 minutes',description:'Creatures in a 15-foot-radius sphere can’t speak a deliberate lie.',classes:['BARD','CLERIC','PALADIN']},
// ---- Level 3 ----
{key:'animate-dead',name:'Animate Dead',level:3,school:'Necromancy',castingTime:'1 minute',range:'10 feet',duration:'Instantaneous',description:'Raise a skeleton or zombie from a corpse to fight for you.',classes:['CLERIC','WIZARD']},
{key:'beacon-of-hope',name:'Beacon of Hope',level:3,school:'Abjuration',castingTime:'1 action',range:'30 feet',duration:'Concentration, up to 1 minute',description:'Bolster creatures against despair, granting advantage on saves and max healing.',classes:['CLERIC']},
{key:'call-lightning',name:'Call Lightning',level:3,school:'Conjuration',castingTime:'1 action',range:'120 feet',duration:'Concentration, up to 10 minutes',description:'A storm cloud forms and you can call down bolts of lightning.',classes:['DRUID']},
{key:'counterspell',name:'Counterspell',level:3,school:'Abjuration',castingTime:'1 reaction',range:'60 feet',duration:'Instantaneous',description:'Interrupt a creature casting a spell.',classes:['SORCERER','WARLOCK','WIZARD']},
{key:'dispel-magic',name:'Dispel Magic',level:3,school:'Abjuration',castingTime:'1 action',range:'120 feet',duration:'Instantaneous',description:'End one active spell affecting a creature, object, or effect.',classes:['BARD','CLERIC','DRUID','PALADIN','SORCERER','WARLOCK','WIZARD']},
{key:'fear',name:'Fear',level:3,school:'Illusion',castingTime:'1 action',range:'Self (30-foot cone)',duration:'Concentration, up to 1 minute',description:'Creatures in the cone become frightened and drop what they’re holding.',classes:['BARD','SORCERER','WARLOCK','WIZARD']},
{key:'fireball',name:'Fireball',level:3,school:'Evocation',castingTime:'1 action',range:'150 feet',duration:'Instantaneous',description:'A bright streak explodes into flame, dealing fire damage in a 20-foot radius.',classes:['SORCERER','WIZARD']},
{key:'fly',name:'Fly',level:3,school:'Transmutation',castingTime:'1 action',range:'Touch',duration:'Concentration, up to 10 minutes',description:'The target gains a flying speed of 60 feet.',classes:['SORCERER','WARLOCK','WIZARD']},
{key:'haste',name:'Haste',level:3,school:'Transmutation',castingTime:'1 action',range:'30 feet',duration:'Concentration, up to 1 minute',description:'Double the target’s speed and grant an extra action.',classes:['SORCERER','WIZARD']},
{key:'lightning-bolt',name:'Lightning Bolt',level:3,school:'Evocation',castingTime:'1 action',range:'Self (100-foot line)',duration:'Instantaneous',description:'A stroke of lightning blasts out in a line, dealing lightning damage.',classes:['SORCERER','WIZARD']},
{key:'mass-healing-word',name:'Mass Healing Word',level:3,school:'Evocation',castingTime:'1 bonus action',range:'60 feet',duration:'Instantaneous',description:'Up to six creatures you can see regain hit points.',classes:['CLERIC']},
{key:'nondetection',name:'Nondetection',level:3,school:'Abjuration',castingTime:'1 action',range:'Touch',duration:'8 hours',description:'Hide a target from divination magic.',classes:['BARD','RANGER','WIZARD']},
{key:'protection-from-energy',name:'Protection from Energy',level:3,school:'Abjuration',castingTime:'1 action',range:'Touch',duration:'Concentration, up to 1 hour',description:'Resistance to one damage type of your choice.',classes:['CLERIC','DRUID','RANGER','SORCERER','WIZARD']},
{key:'remove-curse',name:'Remove Curse',level:3,school:'Abjuration',castingTime:'1 action',range:'Touch',duration:'Instantaneous',description:'Lift a curse from a creature or object.',classes:['CLERIC','PALADIN','WARLOCK','WIZARD']},
{key:'revivify',name:'Revivify',level:3,school:'Necromancy',castingTime:'1 action',range:'Touch',duration:'Instantaneous',description:'A creature that died within the last minute returns to life with 1 hit point.',classes:['CLERIC','PALADIN']},
{key:'sleet-storm',name:'Sleet Storm',level:3,school:'Conjuration',castingTime:'1 action',range:'150 feet',duration:'Concentration, up to 1 minute',description:'Freezing rain falls in a 40-foot-radius cylinder, icing the ground.',classes:['DRUID','SORCERER','WIZARD']},
{key:'slow',name:'Slow',level:3,school:'Transmutation',castingTime:'1 action',range:'120 feet',duration:'Concentration, up to 1 minute',description:'Up to six creatures are hindered, halving their speed and worse.',classes:['SORCERER','WIZARD']},
{key:'spirit-guardians',name:'Spirit Guardians',level:3,school:'Conjuration',castingTime:'1 action',range:'Self (15-foot radius)',duration:'Concentration, up to 10 minutes',description:'Protective spirits swirl around you, damaging enemies that enter.',classes:['CLERIC']},
{key:'stinking-cloud',name:'Stinking Cloud',level:3,school:'Conjuration',castingTime:'1 action',range:'90 feet',duration:'Concentration, up to 1 minute',description:'A 20-foot-radius sphere of yellow, nauseating gas spreads out.',classes:['SORCERER','WIZARD']},
{key:'water-breathing',name:'Water Breathing',level:3,school:'Transmutation',castingTime:'1 action',range:'30 feet',duration:'24 hours',description:'Up to ten creatures can breathe underwater.',classes:['DRUID','RANGER','SORCERER','WIZARD']},
// ---- Level 4 ----
{key:'banishment',name:'Banishment',level:4,school:'Abjuration',castingTime:'1 action',range:'60 feet',duration:'Concentration, up to 1 minute',description:'Send a creature to a harmless demiplane.',classes:['CLERIC','PALADIN','SORCERER','WARLOCK','WIZARD']},
{key:'blight',name:'Blight',level:4,school:'Necromancy',castingTime:'1 action',range:'30 feet',duration:'Instantaneous',description:'Necromantic energy withers a creature, dealing necrotic damage.',classes:['DRUID','SORCERER','WARLOCK','WIZARD']},
{key:'confusion',name:'Confusion',level:4,school:'Enchantment',castingTime:'1 action',range:'90 feet',duration:'Concentration, up to 1 minute',description:'Creatures in a 10-foot-radius sphere act randomly.',classes:['BARD','DRUID','SORCERER','WIZARD']},
{key:'dimension-door',name:'Dimension Door',level:4,school:'Conjuration',castingTime:'1 action',range:'500 feet',duration:'Instantaneous',description:'Teleport yourself (and possibly a companion) to a spot you can visualize.',classes:['BARD','SORCERER','WARLOCK','WIZARD']},
{key:'fire-shield',name:'Fire Shield',level:4,school:'Evocation',castingTime:'1 action',range:'Self',duration:'10 minutes',description:'Wreathe yourself in flame that damages attackers and grants resistance.',classes:['SORCERER','WIZARD']},
{key:'freedom-of-movement',name:'Freedom of Movement',level:4,school:'Abjuration',castingTime:'1 action',range:'Touch',duration:'1 hour',description:'The target’s movement is unaffected by difficult terrain and restraints.',classes:['BARD','CLERIC','DRUID','RANGER']},
{key:'greater-invisibility',name:'Greater Invisibility',level:4,school:'Illusion',castingTime:'1 action',range:'Touch',duration:'Concentration, up to 1 minute',description:'The target becomes invisible even while attacking.',classes:['BARD','SORCERER','WIZARD']},
{key:'guardian-of-faith',name:'Guardian of Faith',level:4,school:'Conjuration',castingTime:'1 action',range:'30 feet',duration:'8 hours',description:'A Large spectral guardian appears and attacks enemies near it.',classes:['CLERIC']},
{key:'ice-storm',name:'Ice Storm',level:4,school:'Evocation',castingTime:'1 action',range:'300 feet',duration:'Instantaneous',description:'Hail hammers a 20-foot-radius cylinder, dealing bludgeoning and cold damage.',classes:['DRUID','SORCERER','WIZARD']},
{key:'polymorph',name:'Polymorph',level:4,school:'Transmutation',castingTime:'1 action',range:'60 feet',duration:'Concentration, up to 1 hour',description:'Transform a creature into a new form.',classes:['BARD','DRUID','SORCERER','WIZARD']},
{key:'stone-shape',name:'Stone Shape',level:4,school:'Transmutation',castingTime:'1 action',range:'Touch',duration:'Instantaneous',description:'Reshape a chunk of stone into a form you desire.',classes:['CLERIC','DRUID','WIZARD']},
{key:'stoneskin',name:'Stoneskin',level:4,school:'Abjuration',castingTime:'1 action',range:'Touch',duration:'Concentration, up to 1 hour',description:'The target gains resistance to nonmagical bludgeoning, piercing, and slashing damage.',classes:['DRUID','RANGER','SORCERER','WIZARD']},
{key:'wall-of-fire',name:'Wall of Fire',level:4,school:'Evocation',castingTime:'1 action',range:'120 feet',duration:'Concentration, up to 1 minute',description:'Conjure a wall of fire that damages creatures passing through it.',classes:['DRUID','SORCERER','WIZARD']},
// ---- Level 5 ----
{key:'animate-objects',name:'Animate Objects',level:5,school:'Transmutation',castingTime:'1 action',range:'120 feet',duration:'Concentration, up to 1 minute',description:'Up to ten nonmagical objects animate and fight for you.',classes:['BARD','SORCERER','WIZARD']},
{key:'cloudkill',name:'Cloudkill',level:5,school:'Conjuration',castingTime:'1 action',range:'120 feet',duration:'Concentration, up to 10 minutes',description:'A 20-foot-radius sphere of poisonous, yellow-green fog billows out.',classes:['SORCERER','WIZARD']},
{key:'cone-of-cold',name:'Cone of Cold',level:5,school:'Evocation',castingTime:'1 action',range:'Self (60-foot cone)',duration:'Instantaneous',description:'A blast of cold air deals cold damage to everything in the cone.',classes:['SORCERER','WIZARD']},
{key:'contagion',name:'Contagion',level:5,school:'Necromancy',castingTime:'1 action',range:'Touch',duration:'7 days',description:'Infect a creature with a magical disease.',classes:['CLERIC','DRUID']},
{key:'dispel-evil-and-good',name:'Dispel Evil and Good',level:5,school:'Abjuration',castingTime:'1 action',range:'Self',duration:'Concentration, up to 1 minute',description:'Protection and the ability to banish otherworldly creatures.',classes:['CLERIC','PALADIN']},
{key:'dominate-person',name:'Dominate Person',level:5,school:'Enchantment',castingTime:'1 action',range:'60 feet',duration:'Concentration, up to 1 minute',description:'Attempt to beguile a humanoid and control its actions.',classes:['BARD','SORCERER','WIZARD']},
{key:'flame-strike',name:'Flame Strike',level:5,school:'Evocation',castingTime:'1 action',range:'60 feet',duration:'Instantaneous',description:'A column of divine fire roars down, dealing fire and radiant damage.',classes:['CLERIC']},
{key:'greater-restoration',name:'Greater Restoration',level:5,school:'Abjuration',castingTime:'1 action',range:'Touch',duration:'Instantaneous',description:'Undo a debilitating effect: reduced ability score, exhaustion, or curse.',classes:['BARD','CLERIC','DRUID']},
{key:'hold-monster',name:'Hold Monster',level:5,school:'Enchantment',castingTime:'1 action',range:'90 feet',duration:'Concentration, up to 1 minute',description:'Paralyze one creature that fails a Wisdom save.',classes:['BARD','SORCERER','WARLOCK','WIZARD']},
{key:'insect-plague',name:'Insect Plague',level:5,school:'Conjuration',castingTime:'1 action',range:'300 feet',duration:'Concentration, up to 10 minutes',description:'A swarm of biting, stinging insects fills a 20-foot-radius sphere.',classes:['CLERIC','DRUID','SORCERER']},
{key:'legend-lore',name:'Legend Lore',level:5,school:'Divination',castingTime:'10 minutes',range:'Self',duration:'Instantaneous',description:'Learn what you know, or have heard, about a name, place, or object.',classes:['BARD','CLERIC','WIZARD']},
{key:'mass-cure-wounds',name:'Mass Cure Wounds',level:5,school:'Evocation',castingTime:'1 action',range:'60 feet',duration:'Instantaneous',description:'Up to six creatures in a 30-foot-radius sphere regain hit points.',classes:['BARD','CLERIC','DRUID']},
{key:'raise-dead',name:'Raise Dead',level:5,school:'Necromancy',castingTime:'1 hour',range:'Touch',duration:'Instantaneous',description:'Return a dead creature to life, as long as its body is mostly intact.',classes:['BARD','CLERIC','PALADIN']},
{key:'wall-of-force',name:'Wall of Force',level:5,school:'Evocation',castingTime:'1 action',range:'120 feet',duration:'Concentration, up to 10 minutes',description:'An invisible wall of force springs into existence, impenetrable to physical force.',classes:['WIZARD']},
{key:'wall-of-stone',name:'Wall of Stone',level:5,school:'Evocation',castingTime:'1 action',range:'120 feet',duration:'Concentration, up to 10 minutes',description:'A nonmagical wall of solid stone springs into existence.',classes:['DRUID','SORCERER','WIZARD']},
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.