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

8 lines
328 B
JavaScript
Raw Normal View History

this.actor.has("Immunity to Psychology")?.delete();
let roll = await new Roll("1d10").roll();
roll.toMessage(this.script.getChatData());
this.script.scriptNotification(`Removed Immunity to Psychology, Adding ${roll.total} Broken Conditions`)
this.actor.addCondition("broken", roll.total, {"flags.wfrp4e.blasted-mind" : true})