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

5 lines
181 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
if (this.actor.hasCondition("stunned") || this.actor.hasCondition("unconscious"))
{
this.script.scriptNotification("Désactivé!");
2024-05-16 17:57:51 +02:00
await this.effect.update({"disabled" : true})
}