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

10 lines
269 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
let msg = ""
let SL = parseInt(this.effect.sourceTest.result.SL);
for(let i = 0; i < SL; i++)
{
msg += `<p>${await this.actor.applyBasicDamage(3, {suppressMsg : true, damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP})}</p>`
}
this.script.scriptMessage(msg);