Tested that triggers fire for all properties.

Fixed some action engine issues found.
This commit is contained in:
ThaumRystra
2024-11-07 00:22:46 +02:00
parent 057772c60a
commit 2c431293e0
9 changed files with 197 additions and 75 deletions

View File

@@ -42,7 +42,8 @@ const constant: ConstantFactory = {
}
export function isFiniteNode(node: ParseNode): node is FiniteNumberConstantNode {
return node.parseType === 'constant'
return node
&& node.parseType === 'constant'
&& node.valueType === 'number'
&& typeof node.value === 'number'
&& isFinite(node.value);