forked from public/foundryvtt-wh4-lang-fr-fr
Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
12
scripts/XjUXxUA0hbwjUatW.js
Normal file
12
scripts/XjUXxUA0hbwjUatW.js
Normal file
@@ -0,0 +1,12 @@
|
||||
if (this.actor.hasCondition("engaged") && this.effect.disabled)
|
||||
{
|
||||
this.effect.update({"disabled" : false})
|
||||
this.item.effects.contents[1].update({"disabled" : false});
|
||||
this.script.notification("Enabled")
|
||||
}
|
||||
else if (this.effect.active && !this.actor.hasCondition("engaged"))
|
||||
{
|
||||
this.effect.update({"disabled" : true})
|
||||
this.item.effects.contents[1].update({"disabled" : true});
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user