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

8 lines
328 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
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})