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

9 lines
451 B
JavaScript
Raw Normal View History

let sourceActor = this.effect.sourceActor;
let damage = args.totalWoundLoss;
let tb = sourceActor.system.characteristics.t.bonus
args.abort = `<strong>${this.effect.name}</strong>: Damage applied to ${sourceActor.name}`;
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;