This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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");
|
||||
}
|
||||
Reference in New Issue
Block a user