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

9 lines
330 B
JavaScript

this.script.scriptMessage(await this.actor.applyBasicDamage(12, {damageType: game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg : true}))
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty: "hard"}})
await test.roll();
if (test.failed)
{
this.actor.addSystemEffect("cold1")
}