forked from public/foundryvtt-wh4-lang-fr-fr
Add all systems effects scripts + translations
This commit is contained in:
11
reference_scripts/lPudo1grrVp05i7a.js
Normal file
11
reference_scripts/lPudo1grrVp05i7a.js
Normal file
@ -0,0 +1,11 @@
|
||||
let loc = Math.floor(CONFIG.Dice.randomUniform() * 2) == 0 ? "head" : "body"
|
||||
let damage = this.actor.system.characteristics.s.bonus + 6
|
||||
|
||||
this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : " - " + this.effect.name}).then(async test => {
|
||||
await test.roll();
|
||||
if(test.failed)
|
||||
{
|
||||
await this.actor.addCondition("stunned")
|
||||
this.script.scriptMessage(await this.actor.applyBasicDamage(damage, {loc, damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg: true}))
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user