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

5 lines
236 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
// If this actor wins a defending test, swap the test
if (!args.opposedTest.result.swapped && args.opposedTest.result.winner == "defender" && args.opposedTest.attackerTest.result.damage)
{
args.opposedTest.swap(this.effect.label);
}