foundryvtt-wh4-lang-fr-fr/reference_scripts/Hq1G30lhJYvtOSNb.js

9 lines
476 B
JavaScript
Raw Normal View History

if (args.test.failed)
{
let applicableCharacteristics = ["ws", "bs", "s", "fel", "ag", "t", "dex"];
if (applicableCharacteristics.includes(args.preData.characteristic))
{
this.actor.addCondition("stunned");
}
}