GameAssist v0.1.1.2 – Improved CritFumble Detection, Consistent GM Prompts, and Enhanced script.json Description #2074
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates GameAssist to v0.1.1.2 with a focus on improved error handling in the CritFumble module, UI consistency, and documentation/metadata clarity in script.json.
Key Changes
CritFumble Module
Natural 1 Detection Robustness:
Refactored the hasNaturalOne function to correctly detect natural 1s on d20 rolls regardless of roll template complexity. This eliminates the Cannot read properties of undefined (reading 'r') error when handling advanced or custom attack macros.
GM Whisper Consistency:
The ❓ Confirm Critical Miss prompt is now whispered to the GM in addition to the player, matching the behavior of the main critical miss menu and improving oversight during play.
script.json
Version bump:
Updated "version" to 0.1.1.2, "previousversions" array extended accordingly.
Description field improved:
Rewritten for clarity and readability, following Roll20 best practices. Description now:
Presents a clear one-line summary
Separates features, requirements, and API commands with newlines for in-app readability
Directly links to setup and troubleshooting documentation
Explicitly states TokenMod and rollable table requirements
States compatibility with the 2014 D&D 5E sheet
Other Files
No core logic changes outside CritFumble’s natural 1 detection and prompt output.
All bugfixes and enhancements are non-breaking and backward compatible.
Changelog updated accordingly.