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

8 lines
218 B
JavaScript
Raw Permalink Normal View History

2024-10-08 20:52:09 +02:00
const locations = [];
for (let [key, loc] of Object.entries(args.AP)) {
if (loc.layers?.some(i => i.metal))
locations.push(key);
}
this.actor.status.addArmour(1, {source: this.effect, magical: true, locations})