ExprAmount invalid parsing #3333
Labels
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
completed
The issue has been fully resolved and the change will be in the next Skript update.
priority: medium
Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).
Steps to Reproduce
set {_x} to amount of {_a::*} and abc
parses successfully, gives error when executedExpected Behavior
Should error on parse
Errors / Screenshots
https://pastebin.com/LWui4Q0U
Server Information
Additional Context
This happens because
ExprAmount
uses%objects%
(not%object%
), but it only checks if the given expression is an instance ofLiteral
(which includesUnparsedLiteral
), not if the given expression is anExpressionList
that containsLiteral
s /UnparsedLiteral
s.The text was updated successfully, but these errors were encountered: