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

[Bug]: Shard Stalker macros broken in House Divided #545

Open
hypnotoadie opened this issue Apr 21, 2024 · 0 comments
Open

[Bug]: Shard Stalker macros broken in House Divided #545

hypnotoadie opened this issue Apr 21, 2024 · 0 comments
Labels
a-house-divided Issues related to A House Divivded bug Functionality which is not working as intended

Comments

@hypnotoadie
Copy link

What happened?

The Arcane Facsimile macro for the shard stalker is now broken. "System" is no longer a property of the token, and the macro breaks when checking the level of the token.

Offending code


if ( existingToken._actor.system.details.level >= 10 ) {
  ui.notifications.warn("Target is too high of level (Max: 10)");
  return;
}

What package are you reporting this for?

A House Divided

Version

2.3.1

Relevant log output

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'system')
    at Macro.eval (eval at #executeScript (foundry.js:22924:16), <anonymous>:15:27)
    at #executeScript (foundry.js:22928:17)
    at Macro.execute (foundry.js:22876:35)
    at 🎁call_wrapped [as call_wrapped] (libWrapper-wrapper.js:507:22)
    at Macro.executeWrapper (main.js:14:16)
    at 🎁call_wrapper [as call_wrapper] (libWrapper-wrapper.js:616:16)
    at 🎁Macro.prototype.execute#advanced-macros (main.js:53:14)
    at 🎁call_wrapper [as call_wrapper] (libWrapper-wrapper.js:616:16)
    at 🎁Macro.prototype.execute#0 (libWrapper-wrapper.js:189:20)
    at Hotbar._onClickMacro (foundry.js:78695:20)
    at 🎁call_wrapped [as call_wrapped] (libWrapper-wrapper.js:507:22)
    at Hotbar.clickMacro (monks-active-tiles.js:2301:24)
    at 🎁call_wrapper [as call_wrapper] (libWrapper-wrapper.js:616:16)
    at 🎁Hotbar.prototype._onClickMacro#0 (libWrapper-wrapper.js:189:20)
    at HTMLLIElement.dispatch (jquery.min.js:2:43184)
    at y.handle (jquery.min.js:2:41168)
@hypnotoadie hypnotoadie added the bug Functionality which is not working as intended label Apr 21, 2024
@github-actions github-actions bot added the a-house-divided Issues related to A House Divivded label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-house-divided Issues related to A House Divivded bug Functionality which is not working as intended
Projects
None yet
Development

No branches or pull requests

1 participant