pokerogue/src
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
..
@types fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
configs/inputs fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
data [Move] Implement Substitute (#2559) 2024-09-13 12:46:22 -04:00
enums [Move] Implement Substitute (#2559) 2024-09-13 12:46:22 -04:00
events fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
field [Move] Implement Substitute (#2559) 2024-09-13 12:46:22 -04:00
interfaces [Refactor/Bug/Move] Overhaul Stats and Battle Items, Implement Several Stat Moves (#2699) 2024-09-02 22:12:34 -04:00
locales [Move] Implement Substitute (#2559) 2024-09-13 12:46:22 -04:00
modifier [Test] Speed up tests and make enemy item override remove existing items (#4203) 2024-09-13 01:09:12 -04:00
phases [Move] Implement Substitute (#2559) 2024-09-13 12:46:22 -04:00
pipelines [Refactor] use typescript strict-null (#3259) 2024-08-07 17:23:12 +01:00
plugins fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
system [Enhancement] Add option for egg skip to settings (#4193) 2024-09-12 10:33:36 -04:00
test [Move] Implement Substitute (#2559) 2024-09-13 12:46:22 -04:00
typings/phaser centralize module typing overrides (#1786) 2024-08-24 12:46:16 -07:00
ui [Move] Implement Substitute (#2559) 2024-09-13 12:46:22 -04:00
account.ts Admin panel beta (#3846) 2024-08-29 10:22:01 +01:00
battle-scene.ts [Move] Implement Substitute (#2559) 2024-09-13 12:46:22 -04:00
battle.ts [Move] Add Retaliate double damage condition (#1831) 2024-09-11 21:31:57 -04:00
constants.ts [Bug] Fix #762: All Pokemon become invisible when capturing then switching with your only pokemon that was not fainted (#4025) 2024-09-09 01:10:47 -04:00
debug.js ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
game-mode.ts [Hotfix] End Biome Catch Problems (#3605) 2024-08-18 01:09:28 +01:00
inputs-controller.ts fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
loading-scene.ts Voucher Event (#4094) 2024-09-08 04:17:02 +01:00
main.ts fix and optimize imports (#4061) 2024-09-07 21:37:37 -07:00
messages.ts resolve some open strict-null bangs TODOs (#3530) 2024-08-13 22:12:42 +01:00
overrides.ts [Dev] Make OPP_MOVESET_OVERRIDE fully override the enemy's moveset (#4062) 2024-09-09 12:55:11 -04:00
phase.ts ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
scene-base.ts [Refactor][QoL] Game Audio + New Settings (#3527) 2024-08-25 17:40:14 +01:00
timed-event-manager.ts Voucher Event (#4094) 2024-09-08 04:17:02 +01:00
touch-controls.ts [Feature] Move touch controls configuration (Reopened) (#3256) 2024-08-10 14:17:04 +01:00
tutorial.ts [Refactor] I18n Cleaning (#2348) 2024-06-17 17:05:33 -04:00
ui-inputs.ts [Refactor][QoL] Game Audio + New Settings (#3527) 2024-08-25 17:40:14 +01:00
utils.test.ts [Testing] Flexible Testing Wrapper for Phaser-Based Battle-Scenes (#1908) 2024-06-07 18:33:45 -04:00
utils.ts [Bug] Fix #762: All Pokemon become invisible when capturing then switching with your only pokemon that was not fainted (#4025) 2024-09-09 01:10:47 -04:00
vite.env.d.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00