diff --git a/src/module/item/entity.js b/src/module/item/entity.js index 8c11f85..f0dda5f 100644 --- a/src/module/item/entity.js +++ b/src/module/item/entity.js @@ -50,9 +50,11 @@ export class OseItem extends Item { } rollWeapon() { - if (this.data.data.missile) { + console.log(this); + let isNPC = this.actor.data.type != 'character'; + if (this.data.data.missile && !isNPC) { this.actor.rollAttack({type: 'missile', label: this.name, dmg: this.data.data.damage}); - } else if (this.data.data.melee) { + } else if (this.data.data.melee && !isNPC) { this.actor.rollAttack({type: 'melee', label: this.name, dmg: this.data.data.damage}); } else { this.actor.rollAttack({type: 'raw', label: this.name});