foundryvtt-wh4-lang-fr-fr/reference_scripts/4cumLUlcuJ7m8C6t.js

4 lines
177 B
JavaScript

let item = args.actor.items.find(i => i.name.includes("Smoothing"));
let smoothing = item?.effects.find(e => e.name === "Smoothing");
if (smoothing)
smoothing.disabled = true;