Only try to roll for the given item type

This commit is contained in:
Johannes Loher 2021-03-04 09:19:11 +01:00
parent b811e7ccfe
commit 71eedaf080

View file

@ -50,9 +50,9 @@ export class DS4Item extends Item<DS4ItemData> {
switch (this.data.type) {
case "weapon":
await this.rollWeapon();
return this.rollWeapon();
case "spell":
await this.rollSpell();
return this.rollSpell();
default:
throw new Error(game.i18n.format("DS4.ErrorRollingForItemTypeNotPossible", { type: this.data.type }));
}