Add all systems effects scripts + translations
This commit is contained in:
11
reference_scripts/tolkNN5P7oOC8GKZ.js
Normal file
11
reference_scripts/tolkNN5P7oOC8GKZ.js
Normal file
@ -0,0 +1,11 @@
|
||||
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "difficult"}})
|
||||
await test.roll();
|
||||
|
||||
if (test.failed)
|
||||
{
|
||||
let sourceActor = this.effect.sourceActor;
|
||||
if (sourceActor)
|
||||
{
|
||||
this.script.scriptMessage(await this.actor.applyBasicDamage(sourceActor.system.characteristics.wp.bonus, {suppressMsg : true, damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL}))
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user