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

7 lines
388 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
if ((args.opposedTest.attackerTest.item && args.opposedTest.attackerTest.item.isMelee) || (args.opposedTest.attackerTest.item && !args.opposedTest.attackerTest.item.name.includes("Ranged")))
{
let AP = parseInt(this.effect.sourceTest.result.SL)
args.modifiers.ap.value += AP;
args.modifiers.ap.magical += AP;
args.modifiers.ap.details.push(`${this.effect.name} (${AP})`)
}