Skip to content

Comments

Fix hidden check outcome vanishing when player rerolls#19353

Open
DocSchlock wants to merge 2 commits intofoundryvtt:v13-devfrom
DocSchlock:fix-check-outcome-reroll
Open

Fix hidden check outcome vanishing when player rerolls#19353
DocSchlock wants to merge 2 commits intofoundryvtt:v13-devfrom
DocSchlock:fix-check-outcome-reroll

Conversation

@DocSchlock
Copy link
Collaborator

Closes #17420

Issue: When a player re-rolls a check with Show Check Outcomes disabled, the check outcome GM box vanishes from the re-roll.

Cause: when the re-roll is generated from the player's end, the gm-visible box isn't present in the HTML for the original roll. Since the elements aren't present, the outcome update code fails to run, removing the box completely.

Resolution: test if the check outcome box is in the old flavor. If it is, use the original workflow to replace the check outcomes. If not, insert a new check outcome element from the reroll after the action section.

@DocSchlock DocSchlock requested a review from CarlosFdez June 15, 2025 01:31
@CarlosFdez
Copy link
Collaborator

I plan to look at this in more detail at a future date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metagaming setting causes rerolls to loose target context

2 participants