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

Feature Request: Allow GM to process rolls for player owned characters #167

Open
tposney opened this issue Oct 23, 2022 · 0 comments
Open

Comments

@tposney
Copy link

tposney commented Oct 23, 2022

In Midi-qol I broadcast LMRTFY requests targeted to a specific user.

In the case of player owned characters (when the player is not logged in) I want to be able to have the GM take the roll on the users behalf.

The "newish" filter out player owned characters code in lmrtfy.js breaks that behaviour.

        // remove player characters from GM's requests
        if (game.user.isGM) {
            actors = actors.filter(a => !a.hasPlayerOwner);
        }        

This fixes my problem and I don't think it breaks the intent of the check.

        // remove player characters from GM's requests
        if (game.user.isGM && data.user !== game.user.id) {
            actors = actors.filter(a => !a.hasPlayerOwner);
        } 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant