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

11 lines
316 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
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);
}