Commit Graph

5152 Commits

Author SHA1 Message Date
Bertie690
e8b9672fc7 Applied some review suggestions 2025-05-19 20:50:18 -04:00
Bertie690
c31b73e964 Fixed bolt beak condition to be marginally less jank 2025-05-19 17:47:20 -04:00
Bertie690
15a762d2c5 Fixed a thing 2025-05-19 15:27:51 -04:00
Bertie690
572d08f332
Merge branch 'beta' into move-use-type 2025-05-19 15:09:03 -04:00
damocleas
4f8aae31b5
Hotfix 1.9.4 to Beta
Hotfix 1.9.4 to beta
2025-05-18 10:17:56 -04:00
Sirz Benjie
9ae969117b
[Bug][UI/UX] Fix fiery fallout message bug (#5834)
* Fix fiery fallout message bug

* Ensure pokemon names are replaced when there is no separator
2025-05-18 00:22:09 -05:00
NightKev
22f5ed1232 [i18n] Update locales 2025-05-17 20:34:06 -07:00
Sirz Benjie
4376a22a7c
[Bug] Fix field moves always playing their animations (#5830) 2025-05-17 14:04:16 -07:00
Jimmybald1
998619e7e5
[Bug] IVs of trainers were incorrectly using the battle seed (#5822)
* Fixed IVs of trainers using the Battle Seed.

* Renamed the randSeedInt functions that use the Battle Seed to randBattleSeedInt functions

* Incorrectly used this in common

* Fixed tests that were still calling the old function name

---------

Co-authored-by: damocleas <damocleas25@gmail.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: Dean <69436131+emdeann@users.noreply.github.com>
Co-authored-by: lxy-lxy-lxy <55084073+lxy-lxy-lxy@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: Lylian BALL <131535108+PyGaVS@users.noreply.github.com>
Co-authored-by: Jimmybald1 <147992650+IBBCalc@users.noreply.github.com>
2025-05-17 10:36:16 -05:00
Dean
0c48fff14b
[Bug] Fix Substitute sprite crash & revived Pokemon softlock (#5829)
Break `resetSummonData` into two methods

Co-authored-by: damocleas <damocleas25@gmail.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: lxy-lxy-lxy <55084073+lxy-lxy-lxy@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: Lylian BALL <131535108+PyGaVS@users.noreply.github.com>
2025-05-17 10:35:38 -05:00
Bertie690
ecad83c911 Made MoveUseType start at 1
As per @DayKev's request
2025-05-15 22:47:28 -04:00
NightKev
84192cd323 Update version to 1.9.4 2025-05-15 14:51:16 -07:00
Bertie690
28c3def6da Merge remote-tracking branch 'upstream/beta' into move-use-type 2025-05-13 09:12:26 -04:00
damocleas
02cac77853
Hotfix 1.9.3 to Beta
Hotfix 1.9.3 to beta
2025-05-12 21:16:32 -04:00
damocleas
a1d736b950
Hotfix 1.9.3 to Main
Hotfix 1.9.3 to main
2025-05-12 21:15:58 -04:00
NightKev
30ba53894e [i18n] Update locales 2025-05-12 17:58:28 -07:00
Sirz Benjie
9b1a222935
[Bug] Fix old session load modifier crash (#5814)
Fix inability to load saves due to modifier type being nulled
2025-05-12 22:33:52 +02:00
Bertie690
3229ed4b20 Fix biome.jsonc 2025-05-12 08:17:52 -04:00
Bertie690
c9bff4e4ac
Revert early_bird.test.ts 2025-05-12 07:30:02 -04:00
Dean
d790b30a30
[Bug][Hotfix] Fix Transformed Sprites not loading properly (#5808)
* Fix ditto sprite not loading properly

* Remove review comment
2025-05-11 18:23:37 -07:00
Sirz Benjie
6c6821b47d
[Bug] [Move] Fix KO causing effects to occur twice (#5811)
* Fix firstTarget calculation when a target was fainted

* Update type annotation in applyMoveEffects

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

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-05-11 21:10:19 -04:00
damocleas
e7f0ea624b
[Bug][Move] Fix move effects not applying with multi-lens 2025-05-11 20:56:00 -04:00
Bertie690
9453dfa0aa Fixed command phase bug causing metronome test timeout 2025-05-11 16:20:29 -04:00
Bertie690
6cfc4da068 Reverted rollout test changes 2025-05-11 16:10:57 -04:00
Bertie690
4523a51b8a Fixed remaining tests (I think) 2025-05-11 16:06:45 -04:00
Bertie690
93418b2ac5
Update pokemon-phase.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-05-11 15:38:32 -04:00
Bertie690
28aa875e78
Update pokemon-species.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-05-11 15:36:08 -04:00
Bertie690
4bac0ed3ec WIP 2025-05-11 13:35:56 -04:00
Bertie690
da6443562b Reverted a couple doc changes 2025-05-11 08:06:49 -04:00
Sirz Benjie
09e38bad39
Set lastHit to true when target faints during multi-hit move 2025-05-10 19:05:18 -05:00
Bertie690
c2e7c95620 Fixed various bugs and added tests for previous bugfixes 2025-05-10 14:39:48 -04:00
Bertie690
ee1b2176bc Added version migration for last resort and co.
buh gumbug
2025-05-10 11:01:56 -04:00
Bertie690
06d250d9e7 Fixed Wimp out tests & ME code
finally i think all the booleans are gone
i hope
2025-05-10 10:35:51 -04:00
Bertie690
3f02493f79 Added MoveUseType and refactored MEP 2025-05-10 10:35:38 -04:00
Dean
0712f86462
[Bug][Hotfix] Fix crashes when loading save with a transformed pokemon (#5806)
* Fix speciesForm being saved incorrectly

* Fix transformed icon

* Fix moveset loading errors
2025-05-09 01:34:28 -07:00
NightKev
b183f26330 Update version to 1.9.3 2025-05-09 00:16:06 -07:00
damocleas
718c8cfbb9
Hotfix 1.9.2 to Beta
Hotfix 1.9.2 to Beta
2025-05-08 01:04:31 -04:00
damocleas
efebb9c9cf
Hotfix 1.9.2 to Main
Hotfix 1.9.2 to Main
2025-05-08 01:00:56 -04:00
Dean
5a58abfddf
[Bug][Hotfix] Suppress Illusion if NG is already active (#5797)
* Suppress preSummon attrs off field

* Add test case
2025-05-07 21:04:24 -07:00
Jimmybald1
530b2b8a00
[Bug] Fix seed not being reset in Select Biome Phase (#5794)
Fix seed not being reset now that Select Biome Phase goes before New Battle

Co-authored-by: Jimmybald1 <147992650+IBBCalc@users.noreply.github.com>
2025-05-07 21:03:22 -07:00
NightKev
cf1367cece
[Bug] PokemonSummonData movesets will now be loaded correctly (#5793) 2025-05-07 21:02:16 -07:00
NightKev
fa6c51d1e2
[Bug] Prevent some corrupt eggs from crashing the game (#5787)
If an egg is somehow a species that doesn't have an associated egg tier
(such as Pikachu), `Egg#getEggTier` now falls back to `EggTier.COMMON`
2025-05-07 21:01:54 -07:00
lxy-lxy-lxy
5ba294ffee
[Bug] Lock Capsule not locking rarities consistently (#5786) 2025-05-07 08:05:32 -07:00
NightKev
4aa0eac5aa Update version to 1.9.2 2025-05-06 04:33:10 -07:00
damocleas
f11e65f550
Hotfixes 1.9.1 to Beta
* Update version to 1.9.1

* [Tiny] Removed unused loc in `v1_9_0.ts` (#5760)

* Add missing zh-CN Spring Banner

* [Hotfix] Fix evil grunts using wrong template (#5763)

* [Bug][Hotfix] Secondary effects no longer trigger status immunity messages (#5764)

Fix secondary effects triggering status immunity messages

* Add files via upload

* [Bug][Hotfix] Always show hit result message (#5769)

Always show hit result

* [Bug] Fix local save encoding crash and Psychic anim (#5775)

* fix error: utf8 to base64

* fix error: space missed

* [Sprite] Fix Clauncher consistent variants, floating Jangmo-o (#5777)

Fix Clauncher consistent variants, flying Jangmo-o

* [Bug] Fix shiny save bug (#5780)

Correctly determine shininess and variant during saving

* [Bug][UI/UX] Ensure pokemon hop when animations are selected (#5781)

Ensure pokemon hop when animations are selected

* [Hotfix] Remove Charcadet line from exp variant masterlist (#5782)

* Remove Charcadet line from exp variant masterlist

* Remove line's backsprite from masterlist

* [Bug][UI/UX] Update battle-info inside pokemon#damageAndUpdate (#5778)

* Update battle-info inside pokemon#damageAndUpdate

* Ensure updatePokemonHp does not skip last hp number

* [Test] Fix sprite test due to unused files (#5783)

Fix sprite test due to unused files

* [Bug] Ensure shiny and variant status respects illusion properly (#5784)

Ensure shiny and variant status respects illusion properly

* Update locales

* [Bug] Fix some moves using illusion type instead of real type (#5772)

* fix revelation dance using the type of the illusion instead of the actual type

* fix other move that might get the illusion type as well

* fix other move that might get the illusion type as well

* fix abilities that might get the illusion type as well

* fix illusion icon in party ui handler

* Fix TSDoc for `Pokemon#getTypes`

* Remove now-unnecessary changes to `.getTypes()` calls

Revert `overrides.ts` changes

* Replace `|| false` with `!!`

---------

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

---------

Co-authored-by: damocleas <damocleas25@gmail.com>
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
Co-authored-by: AJ Fontaine <36677462+Fontbane@users.noreply.github.com>
Co-authored-by: Dean <69436131+emdeann@users.noreply.github.com>
Co-authored-by: lxy-lxy-lxy <55084073+lxy-lxy-lxy@users.noreply.github.com>
Co-authored-by: Xavion3 <xavion333@gmail.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Co-authored-by: Lylian BALL <131535108+PyGaVS@users.noreply.github.com>
2025-05-05 22:39:52 -04:00
damocleas
3ba1ed3fb4
Hotfixes 1.9.1 to Main
Hotfix 1.9.1 -> main
2025-05-05 22:37:53 -04:00
Lylian BALL
4f541a8dce
[Bug] Fix some moves using illusion type instead of real type (#5772)
* fix revelation dance using the type of the illusion instead of the actual type

* fix other move that might get the illusion type as well

* fix other move that might get the illusion type as well

* fix abilities that might get the illusion type as well

* fix illusion icon in party ui handler

* Fix TSDoc for `Pokemon#getTypes`

* Remove now-unnecessary changes to `.getTypes()` calls

Revert `overrides.ts` changes

* Replace `|| false` with `!!`

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-05-05 18:31:11 -07:00
Sirz Benjie
e677e2725e
Update locales 2025-05-05 19:52:13 -05:00
Sirz Benjie
4203513db2
[Bug] Ensure shiny and variant status respects illusion properly (#5784)
Ensure shiny and variant status respects illusion properly
2025-05-05 19:49:59 -05:00
AJ Fontaine
b42b2f6752
[Test] Fix sprite test due to unused files (#5783)
Fix sprite test due to unused files
2025-05-05 20:38:49 -04:00