Commit Graph

3272 Commits

Author SHA1 Message Date
Zach Day 07b9f5476a
[Fix] Ability suppression effects not failing correctly (#2440)
* Make ability suppression fail if ability is already suppressed

* Document SuppressAbilitiesAttr

* Add gastro acid unit tests
2024-06-20 00:43:45 -04:00
Madmadness65 aba3e2abc1 Correct the event's end date
It was set to end one day early, this has been fixed.
2024-06-19 18:51:31 -05:00
Tempoanon cb5cedac84
[Bug] Fix bug in doubles after 1 opponent is phazed (#2419)
* Hotfix uturn with kings rock

* Hotfix for crashing after phazing away a doubles opponent

* Hotfix for crashing after phazing away a doubles opponent
2024-06-19 22:36:23 +01:00
Matthew 3d9b134332
[UI] Update Challenge UI (#2393)
* Update Challenge UI

* Update interpolation and localization

* Update src/locales/de/challenges.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* Update src/locales/de/challenges.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

---------

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-06-19 20:40:08 +01:00
Gihong Kim a3b029facc
[Localization] Fix battlerTagsEncore binding name in korean (#2415) 2024-06-19 14:23:27 -04:00
yun 1ee89501b6
[Localization] Add missing manageNature entry in Korean for starter-select-ui-handler.ts (#2413)
* [Localization] Add missed manageNature entry in Korean for starter-select-ui-handler.ts

* [Localization] Add missed selectNature entry in Korean for starter-select-ui-handler.ts
2024-06-19 12:50:17 -04:00
Enoch c71e5372d4
[Localization] fixed binding name in Korean (#2412) 2024-06-19 12:21:01 -04:00
Lugiad 506cc76c2d
[Localization(fr)] Fix typo in battle.ts (#2411) 2024-06-19 12:13:55 -04:00
Dmitriy K 74aa5a8005
Create Class constructor utility type. (#2162) 2024-06-19 12:00:26 -04:00
Enoch afe70453b1
[hotfix] fix message when helping hand (#2410) 2024-06-19 11:34:17 -04:00
Enoch 150bd35822
[Localization(ko)] translate untranslated word korean in modifire-type (#2409) 2024-06-19 11:12:06 -04:00
Lugiad a37f6c55e6
[Localizatino(ko)] Translate spite (#2408) 2024-06-19 11:11:28 -04:00
José Ricardo Fleury Oliveira 03a98317a9
[Localization] [pt] Updated settings.ts (#2350)
* Updated settings.ts

* fix

* another fix

* minor fix

* fix

* fixfixfix
2024-06-19 11:00:13 -04:00
Enoch 06b1f8a0bc
[Localization] Add localization in battler-tags.ts (#1990)
* [Localization] Add localization in battler-tags

* localize curse ghost skill apply message

* translate Drowsy korean

* translate requested changes

* Update src/locales/ko/battle.ts

Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>

* resolve merge error

* Update French battle.ts

* remove unnecessary backslash

* Update src/locales/de/battle.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* Update battle.ts [Localization(it)]

* recover missing code resolving merge

* Update src/locales/zh_CN/battle.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/data/battler-tags.ts

---------

Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
2024-06-19 10:38:31 -04:00
Jannik Tappert a0186d9b61
[Localization DE] Made German Settings readable again (#2403)
* Made German Settings readable again

* Update src/locales/de/settings.ts

* Update src/locales/de/settings.ts

* Update src/locales/de/settings.ts

* Update src/ui/settings/abstract-settings-ui-handler.ts

* Remove empty line

* Update src/locales/de/settings.ts

* Update src/locales/de/settings.ts
2024-06-19 10:28:30 -04:00
Enoch f054789fd6
[Localization(ko)] translate korean ppReduced message (#2406) 2024-06-19 10:01:30 -04:00
Adrian T 29b8b3aa1f
[Bug] Fixes dragon tail vs ice face eiscue interaction (#2397)
* add optional chaining

* specify first hit
2024-06-19 09:51:50 -04:00
Enoch 58642e6be3
[Localize(ko)] translate untranslated settings word (#2405) 2024-06-19 09:47:44 -04:00
chaosgrimmon 2a2cb41130
[Bug] Prevent Variant Mega Blastoise Crashes (#2401)
* [Sprite] Temporary Front Exp Mega Blastoise Variants

* [Sprite] Temporary Back Exp Mega Blastoise Variants
2024-06-19 09:45:21 -04:00
Adrian T be208d48b6
[Feature] Add number of arena trap layers in menu flyout (#2059)
* add number of trap layers in menu flyout

* refactors

* change key type to effectType
2024-06-18 23:29:56 -05:00
Adrian T 9463da8797
[Bug] Fix ice face blocking all hits from multihit moves (#2391)
* fix ice face bug

* add multihit test
2024-06-18 22:56:44 -04:00
Yonmaru40 508f8eb3cf
[Localization(zh)] Update settings.ts (#2392) 2024-06-18 21:54:36 -04:00
Enoch 2228681d2a
[Localization(ko)] modify typo of swimmer (trainer) (#2390)
Co-authored-by: 송지원 <jiwsong@gmarket.com>
2024-06-18 20:21:27 -04:00
Tempoanon 04c94fcbba
Hotfix uturn with kings rock (#2385) 2024-06-18 20:26:51 +01:00
innerthunder 21f1e077fa
[Featrue] Add Dark-type immunity to Prankster (#2355) 2024-06-18 11:21:54 -04:00
3ae3ae cf1f958a07
[Move] Remove partial from Matcha Gotcha (#2368) 2024-06-18 10:21:53 -04:00
yun 303d913850
[Localization] Localize nature in Pokémon summary (#2370) 2024-06-18 10:13:20 -04:00
Alexis Faizeau 9b325a6689
Fix game speed (#2375) 2024-06-18 15:07:36 +01:00
Xavion3 38b1a7fc61
Make starter selection account for evolutions and forms (#2077)
Only the second and on can be selected with future valid criteria
2024-06-18 09:27:06 -04:00
Ei 57e90b8f4b
[Localization] zh_TW settings.ts translation (#2367) 2024-06-18 02:05:17 -04:00
Ei 74e49b244b
[Localization] Separated the translations for the two 'back's in settings (#2365) 2024-06-18 00:33:00 -04:00
NxKarim cc7db08fe8
[Bug] Sheer Force Fix (Stone Axe and self status moves) (#2366)
Implements AddArenaTrapTagHitAttr for moves like Stone Axe and Ceaseless Edge.

Fixes chance for selfstatus moves.

Added Comments For AddArenaTrapTagHitAttr
2024-06-18 00:23:34 -04:00
ReneGV b64e5dce1c
[QoL] Move up form text when candies and hatched eggs are hidden (#2359) 2024-06-17 23:41:29 -04:00
ReneGV 026c048359
[ablity] Add tests to sturdy (#2362) 2024-06-17 23:39:59 -04:00
Yonmaru40 e96abd5c2e
[Localization(zh)] Update settings.ts (#2364) 2024-06-17 23:37:51 -04:00
Yonmaru40 e0dd04b087
[Localization] various changes and adding translation to zh_cn 6-18 (#2361)
* Update settings.ts

* Update modifier-type.ts

* Update menu.ts

* Update dialogue.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update dialogue.ts

* Update battle.ts

* indentation

* lint fix

* Update settings.ts

* battle.ts ppreduced fix

* missing "

* Update modifier-type.ts

* Trailing spaces
2024-06-17 23:08:24 -04:00
Daniel Gaston b8a3f30bd0
[Hotfix] Sheer Force arena tag add extra condition (#2356) 2024-06-17 21:49:08 -04:00
NxKarim c52e0ac5b6
[Ability] Serene Grace, Shield Dust, Sheer Force (P) (#246)
Co-authored-by: okimin <danielgaston6@gmail.com>
2024-06-17 20:30:42 -04:00
innerthunder 3b3b9e39af
[Move] Implement Follow Me, Rage Powder, and Spotlight (#1834)
* Implement "Center of Attention" battler tag + moves

* Powder immunity logic for Rage Powder

* Center of Attention unit tests
2024-06-17 18:05:21 -04:00
Matthew d70dd16f8c
[Refactor] I18n Cleaning (#2348)
* I18n Cleaning

* pr comments

* appease typedoc

* moved types into src
2024-06-17 17:05:33 -04:00
Adrian T fd1baef244
[Ability] Implement Power Spot & Battery (#2268)
* add battery

* add power spot

* refactor

* remove FieldVariableMovePowerAbAttr

* remove showing ability bar

* document + cleanup

* add unit tests

* update test name

* update variable names

* update multiplier
2024-06-17 16:12:11 -04:00
Dmitriy K eab8db7d29
[Bug]: fix dark aura and fairy aura not applying to moves (#2246)
* fix dark aura and fairy aura not applying to moves

* use Set to prevent duplicate aura abilities from triggering

* switch to different AbAttr class
2024-06-17 20:52:33 +01:00
Adrian T 57b5c33c4b
[Ability] Implement Screen Cleaner (#2346)
* implement screen cleaner

* add documentation

* add unit tests

* rename arena to arenaTag
2024-06-17 15:37:11 -04:00
Jannik Tappert 35d0d2f4e6
[Localization] Added the localized dialogue for alder and kieran (#2261)
* Added german dialogue for alder and kieran (lauro & jo)

* Added zh_CN and it

* Added Korean

* Added tradtional Chinese

* Added spanish

* Added french! (thanks dakurei)
2024-06-17 15:17:08 -04:00
schmidtc1 d5ec5c371b
[Move] Fix bug for Spite and fully implement Eerie Spell (#2244)
* Bug fixes for spite, creates class to extend spite for eerie spell

* Comments for clarity, creates class to extend ReducePpMoveAttr

* Resolve reference error with AttackReducePpMoveAttr

* Shows move failed in a clearer way with showMoveText

* Localization of pp reduction moves

* Fixes issue of eerie spell reducing pp when ratio is 0

* Removes unnecessary phase replacement

* Remove partial implementation from eerie spell

* Adds locale entry for ppReduced to other languages
2024-06-17 15:05:23 -04:00
chaosgrimmon 2ef376e4df
[Sprite] Opaque pixels on exp shiny Mimikyu (#2345)
* [Sprite] Opaque pixels on exp shiny Mimikyu

* [Sprite] Opaque pixels on exp back shiny Mimikyu
2024-06-17 13:24:57 -04:00
Frisk17 89eba349c9
[Move] Implemented Magnet Rise (#2081)
* Partially implemented Magnet Rise

* Implemented Magnet Rise

* Changed pokemon.ts so all TypeImmune tags work instead of just
MagnetRisen

* Magnet Risen is now removed when Gravity is used.

* Magnet Rise is ignored by Thousand Arrows
and Smack Down.

* Fixed a bug where status ground type moves
would also be ignored by Magnet Rise

* Added a message when Magnet Rise is removed

* Inserted TypeImmuneTag check in
getAttackMoveEffectiveness() for the AI

* Created a magnetRiseCondition separately

* Created a test for Magnet Rise

* Bug Fix in Magnet Rise test

* Created Magnet Rise test with Gravity

* Shifted the code from getAttackMoveEffectiveness
and apply into getAttackTypeEffectiveness instead

* Replaced onNextPrompt with doAttack

* Removed redundant runFrom(Phase)

* Replaced magnetRiseCondition with
battlerTags.every anonymous function

* Fixed import errors

* Added an undefined check for summonData
for TypeImmuneTag in getAttackTypeEffectiveness

* Replaced undefined-check with optional chaining
2024-06-17 17:35:06 +02:00
Frederico Santos 4e8cafcdb4
[Community] Add Reddit link to menu UI (#2338)
* feat: Add Reddit link to menu UI

Added a new menu option for Reddit with a corresponding handler to open the Reddit page in a new tab. This enhances the user experience by providing easy access to the Pokerogue subreddit.

* feat: Update wiki URL in menu UI

The wiki URL in the menu UI has been updated to "https://wiki.pokerogue.net/start" to provide a more specific starting point for users.
2024-06-17 15:57:20 +01:00
returntoice d96ae3de43
[Localization(ko)] menu.ts correction (#2339) 2024-06-17 10:52:46 -04:00
Lugiad 534bdaaec7
[Localization] Corrections French menu.ts (#2337)
* Corrections French menu.ts

* Update menu.ts

* Update src/locales/fr/menu.ts

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>

* Update menu.ts

---------

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
2024-06-17 10:29:27 -04:00