foundryvtt-wh4-lang-fr-fr/reference_scripts/MFKhU9vp8bQpHP3I.js

14 lines
313 B
JavaScript
Raw Normal View History

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.applyTerror(value, name)
})
game.user.updateTokenTargets([]);
}
else
{
game.wfrp4e.utility.postTerror(value, name)
}