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

5 lines
178 B
JavaScript
Raw Permalink Normal View History

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