11 lines
476 B
JavaScript
11 lines
476 B
JavaScript
if (args.totalWoundLoss > 0)
|
|
{
|
|
args.actor.setupCharacteristic("t", {skipTargets: true, appendTitle : ` - ${this.effet.name}`, fields: { difficulty: "difficult" } }).then(async Test => {
|
|
await Test.roll();
|
|
if (Test.Échoué)
|
|
{
|
|
await args.actor.addCondition("poisoned")
|
|
this.script.message(await args.actor.applyBasicDamage(3, {suppressMsg : true, damageType: game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL }))
|
|
}
|
|
})
|
|
} |