Add all systems effects scripts
This commit is contained in:
12
scripts/pR4Q2OnPxXtwRVli.js
Normal file
12
scripts/pR4Q2OnPxXtwRVli.js
Normal file
@ -0,0 +1,12 @@
|
||||
let criticals = this.actor.itemTypes.critical;
|
||||
|
||||
if (criticals.length)
|
||||
{
|
||||
this.script.scriptNotification("Cannot suffer Critical Wounds");
|
||||
this.actor.deleteEmbeddedDocuments("Item", criticals.map(i => i.id))
|
||||
}
|
||||
|
||||
if (getProperty(args.data, "system.status.wounds.value") == 0)
|
||||
{
|
||||
this.script.scriptNotification(`Dormant for ${Math.ceil(CONFIG.Dice.randomUniform() * 10)} Rounds`)
|
||||
}
|
Reference in New Issue
Block a user