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

6 lines
166 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let lore = this.effect.name.split(" ")[2].toLowerCase();
if (args.item.type == "spell" && args.item.system.lore.value == lore)
{
args.item.system.cn.value -= 1
}