[BUG] - [DND5e] - macroData is reformatted twice in some cases causing an exception #681
Open
5 tasks done
Labels
bug
Something isn't working
I confirm the following:
Describe the bug
Private API method _transferItems calls _executeMacro for the source and target. If both piles have a macro you will get an exception on fromUuidSync. This is because both calls will attempt to resolve source and target uuids to the corresponding object.
On the second call the uuids are already objects.
This is the line you will get the failure on, because we are passing a document instead of a uuid.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The macro data should only be reformatted once.
Screenshots
If applicable, add screenshots to help explain your problem.
Setup
Active modules
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: