pokerogue/test
Wlowscha 14a0a23abc
[Balance][Challenge] Block master ball catching final boss in challenges (#6273)
* Block catching bosses in nuzlockes

* Changes to conditions to restrict master ball use

* Implemented new can't catch messages

* Fixed some bugs which prevented correct usage of balls

* Special casing full fresh start

* fix text Update command-phase.ts

* Added tests for failing catches

* Using `mockI18next`

* Shorten a couple of variable declarations

* Fixed bug that allowed catching trainer pokemon in end; showing double battle failure only if other failure messages do not apply

* Fixed order of error messages

* Changed description of tests with "in end biome" instead of "paradox mon(s)"

* Not override nature after selection

* Update test/field/catching.test.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

---------

Co-authored-by: damocleas <damocleas25@gmail.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-08-20 19:24:55 -04:00
..
@types [Refactor] Cleaned up arena trap moves; prevented serialization of max layers (#6210) 2025-08-20 08:32:27 -05:00
abilities [Test] Cleaned up shields down tests; added more tests (#6216) 2025-08-20 08:57:46 -05:00
achievements [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
arena [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
battle [Test] Removed deprecated functions from phase interceptor (#6195) 2025-08-19 19:54:40 -05:00
battler-tags [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
challenges [Beta] [Bug] Fix Various Nuzlocke-related Issues (#6261) 2025-08-15 19:22:59 +02:00
data [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
eggs [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
field [Balance][Challenge] Block master ball catching final boss in challenges (#6273) 2025-08-20 19:24:55 -04:00
inputs [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
items [Test] Removed deprecated functions from phase interceptor (#6195) 2025-08-19 19:54:40 -05:00
moves [Bug] Refactored status code, fixed Rest/Sleep Talk status checks (#5872) 2025-08-20 08:45:09 -05:00
mystery-encounter [Bug] Refactored status code, fixed Rest/Sleep Talk status checks (#5872) 2025-08-20 08:45:09 -05:00
phases [Test] Removed deprecated functions from phase interceptor (#6195) 2025-08-19 19:54:40 -05:00
plugins/api [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
setting-menu [Misc] Moved + cleaned up string manipulation functions (#6112) 2025-07-27 13:59:03 -07:00
sprites [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
system [UI/UX] [Feature] Save Management Tool (Rename/Delete Saves) (#5978) 2025-08-13 20:08:12 -05:00
test-utils [Refactor] Cleaned up arena trap moves; prevented serialization of max layers (#6210) 2025-08-20 08:32:27 -05:00
types [Test] Port over + augment remaining test matchers from pkty (#6159) 2025-08-02 15:35:06 -07:00
ui [Test] Removed deprecated functions from phase interceptor (#6195) 2025-08-19 19:54:40 -05:00
utils [Misc] Moved + cleaned up string manipulation functions (#6112) 2025-07-27 13:59:03 -07:00
account.test.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
battle-scene.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
boss-pokemon.test.ts [Test] Cleaned up tests to use updated test utils; part 1 (#6176) 2025-08-19 19:21:40 -05:00
daily-mode.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
endless-boss.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
enemy-command.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
escape-calculations.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
evolution.test.ts [Test] Cleaned up tests to use updated test utils; part 1 (#6176) 2025-08-19 19:21:40 -05:00
final-boss.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
font-face.setup.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
game-mode.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
imports.test.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
internals.test.ts [Test] Replace game.scene.getXPokemon()! with game.field.getXPokemon() 2025-08-04 21:19:57 -07:00
matchers.setup.ts [Test] Added toHaveArenaTagMatcher + fixed prior matchers (#6205) 2025-08-14 13:16:23 -07:00
misc.test.ts [Misc] Move asset initialization from preload to launchBattle 2025-08-02 14:29:35 -07:00
reload.test.ts [Misc] Standardize-file-names (#6137) 2025-07-24 16:38:31 -04:00
utils.test.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
vitest.setup.ts [Dev] Remove sanitizeOverrides, consolidate initialization code into 1 file 2025-07-25 01:23:13 +00:00