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

14 lines
313 B
JavaScript
Raw Permalink 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.applyTerror(value, name)
})
game.user.updateTokenTargets([]);
}
else
{
game.wfrp4e.utility.postTerror(value, name)
}