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

12 lines
305 B
JavaScript
Raw Permalink Normal View History

if (!this.actor.effects.find(e => e.isCondition))
{
return this.script.scriptNotification("No Conditions on this Actor")
}
let choice = await ItemDialog.create(this.actor.effects.filter(i => i.isCondition), 1, "Choose a Condition")
if (choice[0])
{
this.actor.removeCondition(choice[0].conditionId)
}