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

4 lines
155 B
JavaScript

if ((args.item.type == "weapon" || args.item.system.attackType) && !args.item.isMagical )
{
args.item.system.qualities.value.push({name : "magical"})
}