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

9 lines
330 B
JavaScript
Raw Normal View History

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