foundryvtt-wh4-lang-fr-fr/scripts/6qJP0hpShEM43ohx.js

31 lines
862 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const actor = args.actor;
if (actor.itemTypes.skill.find(s => s.name === "Savoir (Océans)")) {
const loreTest = await actor.setupSkill('Savoir (Océans)', {
appendTitle: ` ${this.effect.name}`,
skipTargets: true,
fields: {difficulty: 'hard'},
characteristic: 'int',
});
await loreTest.roll();
if (loreTest.succeeded) {
loreTest.result.other.push(`<b>${actor.name}</b> reconnaît l'attrait du Léviathan.`);
loreTest.renderRollCard();
return;
}
}
let test = await actor.setupSkill('Calme', {
appendTitle: ` ${this.effect.name}`,
skipTargets: true,
fields: {difficulty: 'easy'},
characteristic: 'wp',
});
await test.roll();
if (!test.succeeded) {
test.result.other.push(`<b>${actor.name}</b> devien @Condition[Assommé] par cette vision.`);
test.renderRollCard();
actor.addCondition("stunned");
}