Only try to roll for the given item type
This commit is contained in:
parent
b811e7ccfe
commit
71eedaf080
1 changed files with 2 additions and 2 deletions
|
@ -50,9 +50,9 @@ export class DS4Item extends Item<DS4ItemData> {
|
||||||
|
|
||||||
switch (this.data.type) {
|
switch (this.data.type) {
|
||||||
case "weapon":
|
case "weapon":
|
||||||
await this.rollWeapon();
|
return this.rollWeapon();
|
||||||
case "spell":
|
case "spell":
|
||||||
await this.rollSpell();
|
return this.rollSpell();
|
||||||
default:
|
default:
|
||||||
throw new Error(game.i18n.format("DS4.ErrorRollingForItemTypeNotPossible", { type: this.data.type }));
|
throw new Error(game.i18n.format("DS4.ErrorRollingForItemTypeNotPossible", { type: this.data.type }));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue