Skip to content

Commit

Permalink
Prevent ae-likes from processing paths that start with "data." (#15163)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam committed Jun 20, 2024
1 parent 9e848bd commit abd4745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/rules/rule-element/ae-like.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AELikeRuleElement<TSchema extends AELikeSchema> extends RuleElementPF2e<TS
#pathIsValid(path: string): boolean {
const actor = this.item.actor;
return (
path.length > 0 &&
!path.startsWith("data.") &&
!/\bnull\b/.test(path) &&
(path.startsWith("flags.") ||
[path, path.replace(/\.[-\w]+$/, ""), path.replace(/\.?[-\w]+\.[-\w]+$/, "")].some(
Expand Down

0 comments on commit abd4745

Please sign in to comment.