foundryvtt-wh4-lang-fr-fr/reference_scripts/OeKeQAAcJhdI4Qky.js

5 lines
178 B
JavaScript

if (this.actor.hasCondition("stunned") || this.actor.hasCondition("unconscious"))
{
this.script.scriptNotification("Disabled!");
await this.effect.update({"disabled" : true})
}