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

8 lines
353 B
JavaScript
Raw Normal View History

if (args.test.spell?.getFlag("wfrp4e", "boonOfTzeentch"))
{
if (args.test.result.minormis || args.test.result.majormis || args.test.result.catastrophicmis)
{
this.script.scriptMessage(`<strong>${this.effect.name}</strong> quits your mind in disgust and erases itself from your grimoire!`)
this.effect.sourceItem.delete();
}
}