mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Initial
This commit is contained in:
parent
9564edb244
commit
80595f4e79
12 changed files with 182 additions and 25 deletions
|
|
@ -136,6 +136,13 @@ export default class D20Roll extends DHRoll {
|
|||
return modifiers;
|
||||
}
|
||||
|
||||
bonusEffectBuilder(config) {
|
||||
const changeKeys = [`roll.${this.options.actionType}`, `roll.${this.options.roll.type}`];
|
||||
config.bonusEffects = foundry.utils.deepClone(
|
||||
config.effects.filter(x => x.changes.some(x => changeKeys.includes(x.key)))
|
||||
);
|
||||
}
|
||||
|
||||
static postEvaluate(roll, config = {}) {
|
||||
const data = super.postEvaluate(roll, config);
|
||||
data.type = config.actionType;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue