foundryvtt-wh4-lang-fr-fr/reference_scripts/UvycHOjSPm5Zv9KJ.js

10 lines
473 B
JavaScript
Raw Normal View History

let test = await this.actor.setupSkill(game.i18n.localize("NAME.Dodge"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`})
await test.roll();
let baseDamage = "4";
if (test.succeeded)
baseDamage = "0";
let damage = this.effect.sourceItem.system.computeSpellDamage(baseDamage, true) + parseInt(this.effect.sourceTest.result.SL);
this.script.scriptMessage(await this.actor.applyBasicDamage(damage, {suppressMsg : true}))
this.actor.addCondition("ablaze")