Can't swap versatile weapons on NPC sheets

Issue #287 resolved
Ben Freeland created an issue

Setup

dnd5e: 1.4.2

obsidian: 5.0.17

Steps to Reproduce:

  1. Create NPC sheet
  2. Drag versatile weapon to sheet (eg. longsword)
  3. Equip weapon
  4. Click weapon icon under Actions

Expected:

Weapon switches to versatile damage

Observed:

The following error is printed in the console:

sheet.js:340 Uncaught TypeError: Cannot read property 'parentEffect' of undefined
    at Object.onAttackToggle (sheet.js:340)
    at HTMLDivElement.<anonymous> (sheet.js:64)
    at HTMLDivElement.dispatch (jquery.min.js:2)
    at HTMLDivElement.v.handle (jquery.min.js:2)

Comments (1)

  1. Log in to comment