pokerogue/test/testUtils
Jonathan Bankston 22c386ea9e
[BUG] Fix Transform and Imposter issues (#6008)
* Fixed Transform and Imposter Bug

* Updated Comments

* Revised Comments

* Revised Changes on how tranformed pokemon are referenced to align with reviewer's suggestions

* Removed unused BattlerTag type for transform

* Removed addition of the transform tag to a pokemon in the PokemonTransformPhase

* Moved the check for whether Transform can be used within the TransformAttr class as suggested and removed uneccesary moveId check

* Consolidated if statement regarding isTransformed

* Removed overrides

* Added move condition to Transform + fixed up imposter target selection

* Condensed tests into 1 file + added more automated tests

This includes a couple regression tests for the fusion shenanigans

* Fixed comment

* Updated override typo for unimplemented methods

* Remove redundant parentheses

* Apply suggestions from code review

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>

---------

Co-authored-by: Bertie690 <taylormw163@gmail.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
2025-07-12 23:39:48 -07:00
..
helpers [Test] Fix incorrect reverse mapping in overridesHelper.ts log message 2025-07-06 12:00:33 -07:00
mocks [Refactor] Refactor evo phase (#5735) 2025-06-22 18:11:38 -07:00
saves [UI/UX] Caught battle forms are displayed correctly in Pokédex (#5697) 2025-05-01 02:17:21 +00:00
errorInterceptor.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
fakeMobile.html [Test] Move test folder out of src (#5398) 2025-02-22 22:52:07 -06:00
gameManager.ts [Test] Added tests for Intimidate, Fishious Rend/Bolt Beak, Payback and Moongeist Beam & co. (#5858) 2025-07-13 05:55:05 +00:00
gameManagerUtils.ts [Test] Made game.move.select fail if move not in moveset (#5998) 2025-07-02 12:46:26 -07:00
gameWrapper.ts [Refactor] Refactor evo phase (#5735) 2025-06-22 18:11:38 -07:00
inputsHandler.ts [Dev] Update Biome to 2.0.0 (#6004) 2025-06-20 23:24:11 -07:00
listenersManager.ts [Test] [Refactor] [GitHub] Enable no isolate for vitest (#5566) 2025-03-28 17:30:38 -04:00
phaseInterceptor.ts [BUG] Fix Transform and Imposter issues (#6008) 2025-07-12 23:39:48 -07:00
testFileInitialization.ts [Dev] Update Biome to 2.0.0 (#6004) 2025-06-20 23:24:11 -07:00
testUtils.ts [Test] Move test folder out of src (#5398) 2025-02-22 22:52:07 -06:00
TextInterceptor.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00