Kekilla0 / Item-Macro

Store macros in your items, execute them from your character sheet or from your favorite automation module!
MIT License
18 stars 21 forks source link

Items dragged onto the hotbar no longer execute item macros. #35

Open krbz999 opened 2 years ago

krbz999 commented 2 years ago

This seems to have broken in dnd5e 1.6.

When dragging an item from the sheet to the hotbar, it now produces the macro game.dnd5e.macros.rollItem("item name"), which Item Macro doesn't touch.

game.dnd5e.rollItemMacro("item name") still works.

krbz999 commented 2 years ago

From what I can tell, rollItemMacro gets completely overridden (and works as it should); could the same simply be done for the new macros.rollItem?

trioderegion commented 2 years ago

Its a little bit more complex than that, as that function has now been marked read-only and difficult to wrap/patch.

I'll try to look into this within the next week.