This commit is contained in:
2025-05-02 12:24:44 +02:00
commit 39e925cc1b
3238 changed files with 110472 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`})
await test.roll();
if (test.failed)
{
if (!this.actor.hasCondition("fatigued"))
{
await this.actor.addCondition("fatigued");
}
else
{
await this.actor.addCondition("blinded");
await this.actor.addCondition("deafened");
}
if (((this.actor.hasCondition("blinded").conditionValue || 0) + (this.actor.hasCondition("deafened").conditionValue || 0)) > this.actor.system.characteristics.i.bonus)
{
await this.actor.addCondition("unconscious");
}
}