Add all systems effects scripts + translations
This commit is contained in:
10
reference_scripts/UvycHOjSPm5Zv9KJ.js
Normal file
10
reference_scripts/UvycHOjSPm5Zv9KJ.js
Normal file
@ -0,0 +1,10 @@
|
||||
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Dodge"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`})
|
||||
await test.roll();
|
||||
let baseDamage = "4";
|
||||
if (test.succeeded)
|
||||
baseDamage = "0";
|
||||
|
||||
let damage = this.effect.sourceItem.system.computeSpellDamage(baseDamage, true) + parseInt(this.effect.sourceTest.result.SL);
|
||||
|
||||
this.script.scriptMessage(await this.actor.applyBasicDamage(damage, {suppressMsg : true}))
|
||||
this.actor.addCondition("ablaze")
|
Reference in New Issue
Block a user