foundryvtt-wh4-lang-fr-fr/scripts/3IGO7xEjRjat937X.js

7 lines
245 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
let fatigue = this.actor.hasCondition("fatigued")
if (fatigue)
{
this.script.scriptNotification("Suppression de l'état Fatigué, effet désactivé.")
2024-05-16 17:57:51 +02:00
this.effect.update({disabled : true})
await this.actor.removeCondition("fatigued")
}