5 lines
178 B
JavaScript

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