Skip to content

Fix: B12P6 format presets not loading#262

Open
Stuvcode wants to merge 1 commit intodoshidak:masterfrom
Stuvcode:master
Open

Fix: B12P6 format presets not loading#262
Stuvcode wants to merge 1 commit intodoshidak:masterfrom
Stuvcode:master

Conversation

@Stuvcode
Copy link
Copy Markdown

The Bug:
The 'gen9randombattlesharedpowerb12p6' format had no mapping in the FormatReplacements array, causing the system to search for a non-existent preset endpoint instead of using standard random battle presets.

The Fix:
Added regex mapping to transform 'gen9randombattlesharedpowerb12p6' into 'gen9randombattle', enabling correct preset fetching for B12P6 battles.

The Bug:
The 'gen9randombattlesharedpowerb12p6' format had no mapping in the FormatReplacements array, causing the system to search for a non-existent preset endpoint instead of using standard random battle presets.

The Fix:
Added regex mapping to transform 'gen9randombattlesharedpowerb12p6' → 'gen9randombattle', enabling correct preset fetching for B12P6 battles.
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