* [UI/UX] Retry login after registration once, improve error messages
* Fix tests
* Clarify error that registration was successful but login failed
* Add typing to `onFail()` param
* Send to login form if login fails after successful registration
* Add missing `fixedInt()` to make delay ignore game speed
---------
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* Ice Types now share Hail + Snowscape
* comment out cut and frustration
* Remove Veluza, add Hisui Avalugg to Hail
* Gen 1 Indigo Disk update and Politoed I guess
* More TM additions
* More changes, fix Malamar's name
* Update tm-species-map.ts
* Remove Cut and Frustration
https://github.com/pagefaultgames/pokerogue/pull/6874
* [Bug] Avoid pre-emptively leaving the field when forcibly switching out
* Fix `SwitchPhase` off-by-one error
* Add check for pokemon fainting in test
* add test for destiny bond crash
* Fix `queueDeferred` not respecting pending `FaintPhase`s
TL;DR we would defer the faint phases to run after the switch sequences, which is wrong - leaving the field has to be the LAST thing that happens in a given turn (or else shit breaks big-time).
* Update test/moves/u-turn.test.ts
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* Override music in End biome for Classic, add music in battle.ts for Paradox Pokémon
* Add additional property to if statement
Paradox Pokemon will play their intended music in Endless now.
* Don't change music for Paradox Pokemon in Endless
* Change `if` instead of adding `break`
---------
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Add winter title BGM loop point & play during winter season
The winter title BGM will play during the entirety of December and the first half of January, regardless of if an event is happening or not.
* Reset hit-related turn data inside `MoveEndPhase`
and remove `extraTurns` field
* Fixed FS edge case
* Fixed test hit count checks going past move end phase
* fixed PB tests
* Put `default` switch case last again
* [UI/UX] Split login and register into separate menus
* Resize the container for the "Login" and "Register" buttons
* Make container width dynamic
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* Make logo position dynamic
* Apply suggestions
- Consolidate code in `LoginPhase`
- Use `truncateString` utility function in `form-modal-ui-handler.ts`
- Move login form to match location of register form
- Swap `x` values of username and download buttons
* Apply suggestions
---------
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
* [Test] Improve error message on `toHaveUsedMove`
* Fixed typing on test stuff + added caching on `toHaveArenaTagOptions`
* Fixed matcher breaking with single move arguments
* Fixed typing errors in `vitest.d.ts`
* Fixed typing importing from the wrong file
* Fixed wish test type errors
* Reverted type changes to battler tag matchers by request