DnDWildMagic

DnDWildMagic

Core wild magic operations, initialization, and helper functions

Constructor

# new DnDWildMagic()

Methods

# (static) slotExpended(actor, update) → {boolean|Object}

Standard surge "pre-check" function which determines if this particular actor update represents the use of a spell slot. This is the default pre-check handler used if one is not supplied by the caller of DnDWildMagic.registerHandler

Parameters:
Name Type Description
actor Actor5e

actor under update (pre-update state)

update Object

update to be applied to the actor

See:
  • DnDWildMagic.registerHandler
Returns:
  • false if no slot was used, or an Object containing spellLevel if the surge occured and from which slot level.
Type
boolean | Object