pokerogue/src/test
NightKev f54846f735
[Move] Implement Safeguard (#3447)
* Implemented safeguard and tests

* Update tests

* Add i18n placeholders

* Implement Safeguard for non-volatile statuses

* Implement protection from confusion and Yawn

* Replace `target instanceof EnemyPokemon` with `target.isPlayer()`

* Minor capitalization change

* First batch of i18n

Adds fr, pt_BR, zh_CN, zh_TW

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>

* Add more translations

+ de, es, ko

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>

* Fix broken character in es translation

* Update test with new function definition

* Add Italian translation

Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>

* Add move category check for message display

Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>

* Update phase imports in Safeguard test

* Fix test imports

* Update tests

---------

Co-authored-by: Joshua Keegan <keeganjosh@vuw.ac.nz>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
2024-09-02 00:26:20 -04:00
..
abilities [Bug] Moves copied by Dancer should not consume PP (#3623) 2024-09-02 00:21:56 -04:00
achievements [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
arena [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
battle [Refactor] Improvements on getOrder() (#3547) 2024-09-01 15:23:25 -07:00
battlerTags [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
eggs Fix egg tests (memory use: ~2.4G -> ~550M) (#3757) 2024-08-25 19:07:06 +01:00
field [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
inputs [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
items [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
localization [Localization] Migrate translation files to json (#3709) 2024-08-23 20:52:09 +01:00
moves [Move] Implement Safeguard (#3447) 2024-09-02 00:26:20 -04:00
phases [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
settingMenu [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
sprites [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
ui [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
utils [Test] Tests now default to using "Set" battle style (#3728) 2024-09-01 23:32:31 -04:00
account.spec.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
battle-scene.test.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
battle-stat.spec.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
daily_mode.test.ts [Bug] Fix daily run generated movesets (#3519) 2024-08-13 21:48:56 +01:00
endless_boss.test.ts [Test] Add test for final boss fight phase switch (#3847) 2024-09-01 22:47:22 -04:00
evolution.test.ts [Test] Tests now default to using "Set" battle style (#3728) 2024-09-01 23:32:31 -04:00
final_boss.test.ts [Test] Add test for final boss fight phase switch (#3847) 2024-09-01 22:47:22 -04:00
fontFace.setup.ts tests: add mock for FontFace and it to vitest setup (#1591) 2024-05-30 04:44:36 +01:00
game-mode.test.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
imports.test.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
internals.test.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
misc.test.ts [Test] Tests now default to using "Set" battle style (#3728) 2024-09-01 23:32:31 -04:00
pre.test.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00
vitest.setup.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00