forked from public/foundryvtt-wh4-lang-fr-fr
Sync to latest WFRP release
This commit is contained in:
16
scripts/Q1kUE8jcG7id3MHT.js
Normal file
16
scripts/Q1kUE8jcG7id3MHT.js
Normal file
@@ -0,0 +1,16 @@
|
||||
let criticals = this.actor.itemTypes.critical;
|
||||
|
||||
if (criticals.length)
|
||||
{
|
||||
let choice = await ItemDialog.create(criticals, 1, {title: this.effect.name, text: "Choose Critical to Heal"})
|
||||
|
||||
if (choice[0])
|
||||
{
|
||||
this.script.message(`Healed ${choice[0].name}`);
|
||||
choice[0].delete();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.script.notification("No Critical Wounds!")
|
||||
}
|
||||
Reference in New Issue
Block a user