Files
foundryvtt-wh4-lang-fr-fr/scripts/fSDFCHAo97RLpwGU.js

9 lines
286 B
JavaScript

const hitLocation = args.test.hitloc.result
const hitLocationArmour = args.test.targets[0].armour[hitLocation]
if (hitLocationArmour.layers.length > 0) {
hitLocationArmour.layers.forEach(layer => {
layer.source.system.qualities.value = [];
layer.impenetrable = false;
});
}