Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
10
scripts/uA5qaat5EXzkzltq.js
Normal file
10
scripts/uA5qaat5EXzkzltq.js
Normal file
@@ -0,0 +1,10 @@
|
||||
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Résistance"), {fields : {difficulty : "difficult"}, appendTitle : ` - ${this.effect.name}`})
|
||||
await test.roll();
|
||||
if (!test.succeeded)
|
||||
{
|
||||
let plague = await fromUuid("Compendium.wfrp4e-core.items.Item.aKiuGzlVO51JvsjV")
|
||||
let obj = plague.toObject();
|
||||
await this.actor.createEmbeddedDocuments("Item", [obj]);
|
||||
}
|
||||
|
||||
this.effect.delete();
|
||||
Reference in New Issue
Block a user