itteerde / fvttconfig

Configuration for our Foundry VTT environments
2 stars 1 forks source link

Summon X extra damage type #248

Open itteerde opened 2 months ago

itteerde commented 2 months ago
itteerde commented 2 months ago

https://github.com/foundryvtt/foundryvtt-premium-content/issues/628

itteerde commented 2 months ago

https://github.com/foundryvtt/dnd5e/issues/3754

itteerde commented 1 month ago
       if ( damageBonus && item.hasDamage ) changes.push({
         key: "system.damage.parts",
         mode: CONST.ACTIVE_EFFECT_MODES.ADD,
-         value: JSON.stringify([[`${damageBonus}`, ""]])
+         value: JSON.stringify([[`${damageBonus}`, item.system.damage.parts[0][1]]])
       });