This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
let damage = await new Roll("1d10").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: "average"},
|
||||
skipTargets: true,
|
||||
appendTitle: ` — ${this.effect.name}`,
|
||||
},
|
||||
);
|
||||
|
||||
await test.roll();
|
||||
if (test.failed)
|
||||
{
|
||||
this.actor.addCondition("stunned");
|
||||
}
|
||||
Reference in New Issue
Block a user