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

5 lines
387 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
if (args.test.options.catfall && (args.test.result.roll <= game.settings.get("wfrp4e", "automaticSuccess") || args.test.result.roll <= args.test.target) && !args.test.result.catfall)
{
args.test.result.other.push(`<b>${this.effect.name}</b>: Dommages de chutes réduit de ${Number(args.test.result.SL) + 1} mètres`)
2024-05-16 17:57:51 +02:00
args.test.result.catfall = true; // Prevent duplicate messages
}