League-of-Foundry-Developers / fvtt-module-furnace

34 stars 12 forks source link

Measure Token Distances Macro Not Working #55

Closed qdwag closed 4 years ago

qdwag commented 4 years ago

Hi,

When I run this macro, nothing happens. Console spits up the following message:

Macros.js:219 TypeError: canvas.tokens.controlledTokens is not iterable
    at eval (eval at callScriptMacroFunction (Macros.js:171), <anonymous>:12:33)
    at Macro.callScriptMacroFunction [as callScriptFunction] (Macros.js:174)
    at Macro.renderMacro [as renderContent] (Macros.js:192)
    at Macro.executeMacro (Macros.js:216)
    at Hotbar._onClickMacro (foundry.js:21496)
    at HTMLLIElement.dispatch (jquery.min.js:2)
    at HTMLLIElement.v.handle (jquery.min.js:2)

I would love to have this script running, it would be super useful. PS:I'm running the SWADE game module.