Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem preparing the X formula within Y. TypeError: formula.replace is not a function #3734

Closed
dev7355608 opened this issue Jun 12, 2024 · 0 comments
Assignees
Labels
bug Functionality which is not working as intended
Milestone

Comments

@dev7355608
Copy link
Contributor

Reproduction:

  1. Grab Akra from the Starter Heroes.
  2. Call akra.prepareData().
activated-effect.mjs:193 Problem preparing the Maximum Uses formula within Hempen Rope (50 ft.). TypeError: formula.replace is not a function
    at replaceFormulaData (utils.mjs:94:21)
    at ConsumableData._prepareFinalFormula (activated-effect.mjs:187:38)
    at ConsumableData.prepareFinalActivatedEffectData (activated-effect.mjs:129:10)
    at ConsumableData.prepareFinalData (consumable.mjs:95:10)
    at Item5e.prepareFinalAttributes (item.mjs:669:35)
    at actor.mjs:149:37
    at EmbeddedCollection.forEach (foundry-esm.js:5027:9)
    at Actor5e.prepareData (actor.mjs:149:16)
    at <anonymous>:1:23
@dev7355608 dev7355608 added the bug Functionality which is not working as intended label Jun 12, 2024
@dev7355608 dev7355608 added this to the D&D5E 3.3.0 milestone Jun 26, 2024
@arbron arbron self-assigned this Jun 27, 2024
@arbron arbron closed this as completed Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality which is not working as intended
Projects
None yet
Development

No branches or pull requests

2 participants