Moerill / token-mold

MIT License
27 stars 33 forks source link

[BUG] Reapply setting gives error #181

Closed Fyrexian closed 1 year ago

Fyrexian commented 1 year ago

Describe the bug It seems that when I place tokens into the map, it applies the settings. However, when there is tokens already placed on the map before the module is enabled (or is placed on the map already because of an adventure) and I select them all to be reapplied, it gives this error. image

When I remove the hp attribute that the error is talking about, it gives me this error instead. image

To Reproduce Steps to reproduce the behavior:

  1. Select token
  2. Click the reapply button in actors tab

Expected behavior To apply the settings to the token

Desktop (please complete the following information):

DrWiFi commented 1 year ago

I'm getting a similar issue in the dnd5e module. Dragging a token onto the scene will apply the settings as normal, but attempting to re-apply (to re-roll HP or Name) throws this error:

Screenshot 2023-07-18 at 9 40 43 AM