Files
foundryvtt-wh4-lang-fr-fr/scripts/63Yh0nrhCLLfzd14.js
T
uberwald 38d88c2f19
Validation JSON / validate (push) Successful in 13s
Mise àjour vers 9.6.0
2026-05-18 07:23:40 +02:00

21 lines
569 B
JavaScript

let damage = await new Roll("1d10 + @sin", {sin: this.actor.system.status.sin.value || 0}).roll();
damage.toMessage(this.script.getChatData());
this.actor.applyDamage(damage.total, {
damageType: game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL,
createMessage: this.script.getChatData()
});
const test = await this.actor.setupSkill(
game.i18n.localize("NAME.Endurance"),
{
fields: {difficulty: "difficult"},
skipTargets: true,
appendTitle: `${this.effect.name}`,
},
);
await test.roll();
if (test.failed)
{
this.actor.addCondition("stunned");
}