foundryvtt-shadowdark icon indicating copy to clipboard operation
foundryvtt-shadowdark copied to clipboard

Add damage / healing options to spells

Open PrototypeESBU opened this issue 1 month ago • 0 comments

With the new changes to rolls in v4.0.0, it's now easy to get more specific about healing vs damage from rolls.

  • Add text fields to spells for <spell>.damage and <spell>.healing to the spell item
  • method shadowdark.dice.rollFromConfig to use new fields to populate object as config.damage or config.healing on the main object, setting type = "damage or healing"
  • for context menus / button, <chatmessage>.getRoll("damage") or <chatmessage>.getRoll("healing") now returns attached damage or healing roll, which can be used to apply results to a selected token.

PrototypeESBU avatar Nov 11 '25 17:11 PrototypeESBU