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

10 lines
473 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
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")