foundryvtt-wh4-lang-fr-fr/scripts/58rFc9HiBoX66J6p.js

9 lines
456 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let sourceActor = this.effect.sourceActor;
let damage = args.totalWoundLoss;
let tb = sourceActor.system.characteristics.t.bonus
args.abort = `<strong>${this.effect.name}</strong>: Dommages appliqués à ${sourceActor.name}`;
2024-05-16 17:57:51 +02:00
let message = await sourceActor.applyBasicDamage(damage - tb, {damageType: game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg : true})
this.script.scriptMessage(message.replace(`${tb} TB`, `${tb} × 2 TB`))
args.abort = true;