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

7 lines
388 B
JavaScript
Raw Permalink Normal View History

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})`)
}