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

16 lines
539 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
// Everything within Fellowship Bonus yards
// of the target point is splashed with mystic poison,
// suffering 1d10 + SL damage which ignores Armour Points
let damage = (await new Roll(`1d10 + ${parseInt(this.effect.sourceTest.result.SL)}`).roll())
await damage.toMessage(this.script.getChatData())
this.script.scriptMessage(await args.actor.applyBasicDamage(
damage.total,
{damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg: true}
))
// ... and gains the Poisoned Condition
this.actor.addCondition("poisoned")