-
Notifications
You must be signed in to change notification settings - Fork 263
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
Condition options setStates/unsetStates return wrong data in getTokens/getTokenNames #1292
Labels
bug
macro changes
This issue adds or changes macro functions. Extra work is required (testing, wiki, code editor)
tested
This issue has been QA tested by someone other than the developer.
Comments
Phergus
added
bug
documentation needed
Missing, out-of-date or bad documentation
macro changes
This issue adds or changes macro functions. Extra work is required (testing, wiki, code editor)
labels
Feb 18, 2020
Merudo
added a commit
to Merudo/maptool
that referenced
this issue
Feb 18, 2020
PR #1295 fixes this. |
Merudo
added a commit
to Merudo/maptool
that referenced
this issue
Feb 18, 2020
Merudo
added a commit
to Merudo/maptool
that referenced
this issue
Feb 18, 2020
- Fix similar issues for "light" and "propertyType" options - Fix RPTools#1292
Also there are similar bugs with |
Merudo
added a commit
to Merudo/maptool
that referenced
this issue
Feb 18, 2020
- Fix similar issues for "light", "propertyType", and "owner" options - Fix RPTools#1292
Merudo
added a commit
to Merudo/maptool
that referenced
this issue
Feb 19, 2020
- Fix similar issues for "light", "propertyType", and "owner" options - Fix RPTools#1292
Merudo
added a commit
to Merudo/maptool
that referenced
this issue
Feb 19, 2020
- Fix similar issues for "light", "propertyType", and "owner" options - Fix RPTools#1292
Phergus
pushed a commit
that referenced
this issue
Feb 19, 2020
- Fix similar issues for "light", "propertyType", and "owner" options - Fix #1292
Phergus
added
the
tested
This issue has been QA tested by someone other than the developer.
label
Feb 20, 2020
Tested conditions |
Wiki pages for getTokens()/getTokenNames() updated. |
Phergus
removed
the
documentation needed
Missing, out-of-date or bad documentation
label
Feb 20, 2020
Phergus
added a commit
that referenced
this issue
Feb 21, 2020
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
macro changes
This issue adds or changes macro functions. Extra work is required (testing, wiki, code editor)
tested
This issue has been QA tested by someone other than the developer.
Describe the bug
Passing a string with a single state name instead of an array does not produce an error but instead returns incorrect information. Passing a string did work in 1.5.10.
Both setStates and unsetStates conditions for
getTokens()/getTokenNames()
are documented to take a JSON array of the states to be checked for.To Reproduce
Steps to reproduce the behavior:
With this code, and one or more tokens with the Dead state set, MT 1.5.12/13 returns an empty string.
With this code and one or more tokens with the Dead state not set, MT 1.5.12/13 returns all of the tokens.
Expected behavior
In version 1.5.10, the same code returns the correct list of tokens.
MapTool Info
Desktop:
The text was updated successfully, but these errors were encountered: