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

10 lines
225 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let actor = Array.from(game.user.targets)[0]?.actor;
if (actor)
{
actor.applyEffect({effectUuids : this.effect.sourceItem.effects.contents[0].uuid})
}
else
{
this.script.scriptNotification("Aucune cible!", "error")
2024-05-16 17:57:51 +02:00
}