pokerogue/src/data
innerthunder 70295280da
[Move] Implement Substitute (#2559)
* Implement Substitute

Squashed commit from working branch

* Fix integration test imports

* Use Override Helper utils + Fix Baton Pass test

* Update src/test/moves/substitute.test.ts

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>

* Fix test imports + nits

* Document RemoveAllSubstitutesAttr

* Fix some strict-null issues

* more strict-null fixes

* Fix baton pass test

* Reorganized Substitute translation keys

* Added checks for substitute in contact logic

* Clean up Unseen Fist contact logic

* Remove misleading comment in Download attr

* RIP phases.ts

* Fix imports post-phase migration

* Rewrite `move.canIgnoreSubstitute` to `move.hitsSubstitute`

* Also fixed interactions with Shell Trap and Beak Blast

* Removed some leftover `canIgnoreSubstitute`s

* fix issues after beta merge

* Status move effectiveness now accounts for substitute

* More edge case tests (Counter test failing)

* Fix Counter + Trap edge cases + add Fail messagesd

* Fix leftover nit

* Resolve leftover test issues

* Fix Sub offset carrying over to Trainer fights

* Hide substitute sprite during catch attempts

* Make substitutes baton-passable again

* Remove placeholder locale keys and SPLASH_ONLY

* Fix imports and other nits

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

* ESLint

* Fix imports

* Fix incorrect `resetSprite` timing

* Fix substitute disappearing on hit (maybe?)

* More animation fixes (mostly for Roar)

---------

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2024-09-13 12:46:22 -04:00
..
ability.ts [Move] Implement Substitute (#2559) 2024-09-13 12:46:22 -04:00
arena-tag.ts [Refactor/Bug/Move] Overhaul Stats and Battle Items, Implement Several Stat Moves (#2699) 2024-09-02 22:12:34 -04:00
battle-anims.ts [Move] Implement Substitute (#2559) 2024-09-13 12:46:22 -04:00
battler-tags.ts [Move] Implement Substitute (#2559) 2024-09-13 12:46:22 -04:00
berry.ts [Refactor/Bug/Move] Overhaul Stats and Battle Items, Implement Several Stat Moves (#2699) 2024-09-02 22:12:34 -04:00
biomes.ts fix: Fix missing comma in biomeLinks array 2024-09-02 00:03:51 +01:00
challenge.ts fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
daily-run.ts Prevent daily runs from breaking due to very (un)lucky RNG (#3841) 2024-08-30 20:10:38 -07:00
dialogue.ts [Hotfix] Remove extra Roark victory line, fix baton pass i18n in achv.ts (#4103) 2024-09-08 02:46:56 -04:00
egg-hatch-data.ts [Enhancement] Skip egg hatching and show summary (#3726) 2024-09-04 16:59:25 +00:00
egg-moves.ts [Balance] Biome Changes / Minor Passive Changes / Minor Egg Move Changes / Beta GMax form adjustments (#3852) 2024-08-29 20:29:06 +01:00
egg.ts [Bug] Fix rare egg move and species rates for Manaphy eggs (#4125) 2024-09-10 10:15:07 -04:00
exp.ts ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
gender.ts ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
move.ts [Move] Implement Substitute (#2559) 2024-09-13 12:46:22 -04:00
nature.ts [Refactor/Bug/Move] Overhaul Stats and Battle Items, Implement Several Stat Moves (#2699) 2024-09-02 22:12:34 -04:00
pokeball.ts [Refactor][QoL] Game Audio + New Settings (#3527) 2024-08-25 17:40:14 +01:00
pokemon-evolutions.ts [Refactor/Bug/Move] Overhaul Stats and Battle Items, Implement Several Stat Moves (#2699) 2024-09-02 22:12:34 -04:00
pokemon-forms.ts [Misc] Allow Meloetta's starting form to be selected (#4192) 2024-09-13 03:49:28 -07:00
pokemon-level-moves.ts [Balance] Give Partner Eevee and G-Max Eevee access to their signatures / Fix G-Max Pikachu Learnset (#2474) 2024-08-25 15:26:19 -07:00
pokemon-species.ts [Misc] Allow Meloetta's starting form to be selected (#4192) 2024-09-13 03:49:28 -07:00
splash-messages.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00
status-effect.ts [Bug] Fix DNA splicers broken from the strictnull check (#3454) 2024-08-09 09:33:31 -04:00
terrain.ts fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
tms.ts Even more TM fixes (#3889) 2024-08-30 10:54:48 -07:00
trainer-config.ts [Balance] Tweak evil boss teams, fix aesthetic details (#4214) 2024-09-13 12:44:42 -04:00
trainer-names.ts [Misc] Update eslint.config.js for space after commas (#3649) 2024-08-23 16:36:10 +08:00
type.ts [Challenge] Inverse battle challenge (#3525) 2024-08-29 19:59:33 +01:00
variant.ts fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
weather.ts [Hotfix] Fix harsh weather cancelling moves based on base type (#4097) 2024-09-08 02:29:49 -04:00