Files
foundryvtt-wh4-lang-fr-fr/scripts/iqwojL5Ku26wsgnI.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

11 lines
395 B
JavaScript

if (this.actor.system.status.fate?.value > 0 && (await this.script.dialog("Dépenser un Destin ?")))
{
await this.actor.spend("system.status.fate.value");
this.script.message("Destin dépensé");
await this.actor.addCondition("stunned");
this.actor.update({"system.status.corruption.value" : this.actor.system.status.corruption.value + 1});
}
else
{
this.actor.addCondition("dead");
}