/r 1d6cs>=5 # Disadvantage
This runs successfully for GM users, but causes an error for players.
Error Msg: There was an error in your chat message syntax.
foundry.js:747 TypeError: data.items[item][k].replace is not a function
[Detected 1 package: system:worldbuilding]
at SimpleActor._applyItemsFormulaReplacements (actor.js:185)
at SimpleActor.getRollData (actor.js:54)
at ChatLog._processDiceCommand (foundry.js:74149)
at ChatLog.processMessage (foundry.js:74120)
at Macro._executeChat (foundry.js:19969)
at Macro.execute (foundry.js:19955)
at Hotbar._onClickMacro (foundry.js:68047)
at HTMLLIElement.dispatch (jquery.min.js:2)
at HTMLLIElement.y.handle (jquery.min.js:2)
onError @ foundry.js:747
call_wrapped @ libWrapper-wrapper.js:507
Hooks.onError#lib-wrapper @ listeners.js:137
Hooks.onError#0 @ libWrapper-wrapper.js:187
(anonymous) @ foundry.js:19970
Promise.catch (async)
_executeChat @ foundry.js:19969
execute @ foundry.js:19955
_onClickMacro @ foundry.js:68047
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2
When using the chat window, nothing happens.
Error:
actor.js:185 Uncaught (in promise) TypeError: data.items[item][k].replace is not a function
[Detected 1 package: system:worldbuilding]
at SimpleActor._applyItemsFormulaReplacements (actor.js:185)
at SimpleActor.getRollData (actor.js:54)
at ChatMessage.getRollData (foundry.js:18006)
at ChatMessage.getHTML (foundry.js:18048)
at ChatLog.postOne (foundry.js:73934)
at ChatMessage._onCreate (foundry.js:18174)
at ClientDatabaseBackend.callback (foundry.js:12575)
at foundry.js:12525
at Array.map (<anonymous>)
at ClientDatabaseBackend._handleCreateDocuments (foundry.js:12525)
at ClientDatabaseBackend._createDocuments (foundry.js:12433)
at async Function.createDocuments (commons.js:6103)
at async Function.create (commons.js:6226)