Remove console log

This commit is contained in:
Dapoolp 2025-06-29 22:00:57 +02:00
parent f92ee042e6
commit c5c98d7a99
2 changed files with 5 additions and 3 deletions

View file

@ -29,7 +29,7 @@ export class DHRoll extends Roll {
for (const hook of config.hooks) {
if (Hooks.call(`${SYSTEM.id}.preRoll${hook.capitalize()}`, config, message) === false) return null;
}
console.log(config)
this.applyKeybindings(config);
let roll = new this(config.roll.formula, config.data, config);

View file

@ -543,7 +543,8 @@ export class DHDamageAction extends DHBaseAction {
roll: {formula},
targets: (data.system?.targets.filter(t => t.hit) ?? data.targets),
hasSave: this.hasSave,
source: data.system?.source
source: data.system?.source,
event
};
if(this.hasSave) config.onSave = this.save.damageMod;
if(data.system) {
@ -615,7 +616,8 @@ export class DHHealingAction extends DHBaseAction {
roll: {formula},
targets: (data.system?.targets ?? data.targets).filter(t => t.hit),
messageType: 'healing',
type: this.healing.type
type: this.healing.type,
event
};
roll = CONFIG.Dice.daggerheart.DamageRoll.build(config);