5 lines
229 B
JavaScript
5 lines
229 B
JavaScript
let fearCounter = this.item.effects.filter(i => i.name == this.effect.name).length;
|
|
|
|
fearCounter += Number(this.actor.has("Peur")?.system.specification.value) || 0
|
|
|
|
game.wfrp4e.utility.postPeur(fearCounter || 1, this.effect.name) |