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

14 lines
309 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
let value = parseInt(this.item.specification.value)
let name = this.actor.prototypeToken.name
if (game.user.isGM && game.user.targets.size)
{
game.user.targets.forEach(t => {
t.actor.applyFear(value, name)
})
game.user.updateTokenTargets([]);
}
else
{
game.wfrp4e.utility.postFear(value, name)
}