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

10 lines
222 B
JavaScript
Raw Normal View History

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("No target!", "error")
}