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

6 lines
356 B
JavaScript
Raw Normal View History

2024-10-08 20:52:09 +02:00
if (!args.itemCreated) return;
if (args.itemCreated.type !== "critical") return;
if (args.itemCreated.system.location.value.toLowerCase() !== "head") return;
if (Number(args.itemCreated.system.wounds.value) > 0) {
this.script.message(game.i18n.format("SCRIPT.Sallet", {name: args.itemCreated.parent.name, wounds: args.itemCreated.system.wounds.value}))
}