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

Target roll options aren't added to recall knowledge action macro #15214

Closed
xyzzy42 opened this issue Jun 23, 2024 · 1 comment
Closed

Target roll options aren't added to recall knowledge action macro #15214

xyzzy42 opened this issue Jun 23, 2024 · 1 comment
Labels
bug Functionality that is not working as intended

Comments

@xyzzy42
Copy link
Contributor

xyzzy42 commented Jun 23, 2024

E.g., game.pf2e.actions.get('recall-knowledge').use({statistic: 'society'});

Obviously while targeting a token.

The problem is that RK creates a "synthetic" DC rather than an existing DC on the actor. It might look like { value: 15, visible: false }.

Then inside StatisticCheck.roll() we have this check:

        const selfIsTargeting =
            !!targetToken &&
            ((this.domains.includes("spell-attack-roll") && item?.isOfType("spell")) ||
                (!["flat-check", "saving-throw"].includes(this.type) &&
                    !!(args.dc?.slug || "statistic" in (args.dc ?? {})) &&
                    (!item || item.isOfType("action", "campaignFeature", "feat", "weapon"))));

This check result is false and prevents target roll options from being used. The issue is the next to last line, args.dc?.slug || "statistic" in (args.dc ?? {}). The dc object created by RK, which is what #resolveCheckDC() will return, has neither a slug nor a statistic.

@stwlam stwlam added the bug Functionality that is not working as intended label Jul 8, 2024
@TikaelSol
Copy link
Collaborator

Closing in favor of the consolidated issue #15855

@TikaelSol TikaelSol closed this as not planned Won't fix, can't repro, duplicate, stale Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality that is not working as intended
Projects
None yet
Development

No branches or pull requests

3 participants