Generative AI was used to assist with parts of the code and documentation. All work was reviewed, edited, and tested by the author.
DnD5e Class-Specific Spellcasting Bonuses
DnD5e Class-Specific Spellcasting Bonuses is a utility module for the D&D5e system in Foundry VTT that enables class-scoped spellcasting modifiers using standard Active Effects.
Modifiers can be applied specifically to a source class (e.g., +1 DC to Wizard spells without affecting Cleric spells), making this an essential tool for:
-
Multiclass characters with different power sources.
-
Magic items that enhance a specific spellcasting class (e.g., Rod of the Pact Keeper).
-
Subclass features that modify only one specific spell list.
-
Temporary buffs that should not affect all spellcasting.
🌟 Features
-
Class-Specific Modifiers: Support for both Spell Save DC and Spell Attack bonuses.
-
Stacking: Bonuses from several effects on the actor or its items add together; disabled and suppressed effects are ignored.
-
Dynamic Headers: Automatically updates the Spellcasting headers in the actor sheet to reflect class-specific totals.
-
Non-Destructive: Uses
libWrapperto recalculate values during data preparation without modifying core system data.
🛠️ How to Use
Add an Active Effect to a character or an item, with mode Add and the bonus as its value:
-
Spell Save DC:
flags.dnd5e-scoped-bonuses.class.spell.dc.[classname] -
Spell Attack:
flags.dnd5e-scoped-bonuses.class.spell.attack.[classname]
For example, flags.dnd5e-scoped-bonuses.class.spell.attack.cleric with value 2 gives +2 to Cleric spell attacks. A spell receives the bonus when its source class matches the class name in the key.
⚙️ System Requirements
-
Foundry VTT: v13–v14
-
D&D5e System: v5.x–6.x (verified with 6.0.3)
-
Required Dependency:
libWrapper