FIX: macros

master
U~man 2020-07-30 15:07:52 +02:00
parent af792eeef8
commit 48e1d8eb95
1 changed files with 21 additions and 0 deletions

View File

@ -250,6 +250,27 @@ export class OseItem extends Item {
return this.update({ data: newData });
}
roll() {
switch (this.type) {
case "weapon":
this.rollWeapon();
break;
case "spell":
this.spendSpell();
break;
case "ability":
if (this.data.data.roll) {
this.rollFormula();
} else {
this.show();
}
break;
case "item":
case "armor":
this.show();
}
}
/**
* Show the item to Chat, creating a chat card which contains follow up attack or damage roll options
* @return {Promise}