Add all systems effects scripts
This commit is contained in:
10
scripts/1wrPvP6lJwIAfmsl.js
Normal file
10
scripts/1wrPvP6lJwIAfmsl.js
Normal file
@ -0,0 +1,10 @@
|
||||
let choice = await ItemDialog.create(ItemDialog.objectToArray(game.wfrp4e.config.locations), 1, "Choisir une localisation");
|
||||
|
||||
let location = choice[0].id;
|
||||
|
||||
let itemTargeted = this.actor.items.get(this.effect.getFlag("wfrp4e", "itemTargets")[0])
|
||||
|
||||
if (itemTargeted)
|
||||
{
|
||||
itemTargeted.update({[`system.APdamage.${location}`] : itemTargeted.system.APdamage[location] + 1})
|
||||
}
|
Reference in New Issue
Block a user