Skip to content

GameAssist v0.1.1.2 – Improved CritFumble Detection, Consistent GM Prompts, and Enhanced script.json Description #2074

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Mord-Eagle
Copy link
Contributor

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.

Added:

[0.1.1.2] – 2025-06-10

### CritFumble Module

- **Natural 1 Detection Bugfix:**  
  Refactored the `hasNaturalOne` function to robustly detect natural 1s on all d20 attack rolls, regardless of template complexity or non-standard inline roll formats. This eliminates `"Cannot read properties of undefined (reading 'r')"` errors and ensures that all valid attack rolls are properly checked for critical fumbles.

- **GM Visibility Improvement:**  
  The ❓ **Confirm Critical Miss** confirmation menu is now whispered to both the GM and the player, not just the player. This makes GM oversight consistent across all critical miss event prompts.
[0.1.1.2] – 2025-06-10

### CritFumble Module

- **Natural 1 Detection Bugfix:**  
  Refactored the `hasNaturalOne` function to robustly detect natural 1s on all d20 attack rolls, regardless of template complexity or non-standard inline roll formats. This eliminates `"Cannot read properties of undefined (reading 'r')"` errors and ensures that all valid attack rolls are properly checked for critical fumbles.

- **GM Visibility Improvement:**  
  The ❓ **Confirm Critical Miss** confirmation menu is now whispered to both the GM and the player, not just the player. This makes GM oversight consistent across all critical miss event prompts.
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

Successfully merging this pull request may close these issues.

1 participant