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

11 lines
316 B
JavaScript

let weapon = args.opposedTest.defenderTest.weapon
if (
!args.opposedTest.result.swapped &&
args.opposedTest.result.winner == "defender" &&
args.opposedTest.attackerTest.result.damage &&
weapon &&
weapon?.system.properties.qualities.fast
)
{
args.opposedTest.swap(this.effect.label);
}