Commit Graph

1852 Commits (45e40f66ce7bc822d416c95a204633b77f0c44e6)

Author SHA1 Message Date
Flashfyre 005caeb1ab Change cookie expiration to 90 days 2024-05-05 18:13:19 -04:00
Benjamin Odom e6fd331931 Fix HalfSacrificialAttr
Mind Blown targets all users and was triggering recoil every time it hit. Changed so that it only applies once after all targets take damage by adding a new MoveEffectTrigger, POST_TARGET. This also fixes an issue where dying to recoil stopped the rest of the damage from hitting the remaining targets.

This change also applies fixes for Steel Beam since they are have the same effect but is single target.

Also added missing messages for Damp and Recoil. All messaging is in line with Pokémon Showdown.
2024-05-05 17:46:15 -04:00
Tempoanon 9b72dfbd71
Implement curse (#510)
* Implement curse

* self targeting is always true if not ghost type
2024-05-05 17:45:20 -04:00
Flashfyre 6a3ca62490 Add separate sub-legendary stats 2024-05-05 17:11:29 -04:00
Madi Simpson f7f235cdec move: handle some aspects of custom fail text a bit better 2024-05-05 14:28:06 -04:00
lucfd 4aad37a758
Implement Take Heart Sleep Talk edge case (#508)
* removed take heart condition, added sleep talk edge case

* removed freeze heal

* removed testing stuff
2024-05-05 13:04:19 -05:00
LaukkaE 697f2a3a42 fix-takeHeart 2024-05-05 13:36:52 -04:00
Madi Simpson b6603e2c6c move: fix issue with self switch moves causing softlocks 2024-05-05 12:22:03 -04:00
EggMuncherSupreme fa2d257144
Changed Bouncy Bubble to heal 100% of damage dealt and implemented Take Heart (#326)
* Changed Bouncy Bubble to heal 100% of damage dealt, as according to Gen 8

* Fully implemented Take Heart
2024-05-05 11:01:39 -05:00
Madi Simpson 8e606139fa
moves: (mostly) fix parting shot stack bug (#495) 2024-05-05 11:50:46 -04:00
Greenlamp 408b189966 1st attempt with a fix for black screen 2024-05-05 11:43:38 -04:00
Madi Simpson fa01f32475 ability: sturdy ability tag no longer pops up with 1 max hp 2024-05-05 11:40:54 -04:00
Armin 5c6e161eda Issue-483: Fix contact effects after death 2024-05-05 11:06:26 -04:00
Flashfyre 437cb87df9 Add separate achievements for sub-legendaries and rename pseudoLegendary field 2024-05-05 11:05:22 -04:00
Madi Simpson 80ee440109
Implement Guard Dog, attribute for abilities to give Intimidate immunity (#448)
* abilities: implement guard dog, abilities that give intimidate immunity

* abilities: implement rattled's second effect, remove refs to mold breaker

* abilities: fix rattled not giving the attack drop still

* abilities: make ability bars pop in to some success

* abilities: implement suction cups since it has the same effect

* moves: add custom fail text, fix animation issues with Guard Dog/Roar

* abilities: manually show intimidate ability bar to prevent weirdness
2024-05-05 10:52:27 -04:00
Lugiad f5bf35f8de
Removing forms names in Italian pokemon.ts (#486)
* Removing forms names in Italian pokemon.ts

Forms names aren't supposed to be specified in the name of the Pokémon

* Removing forms names in Italian pokemon.ts
2024-05-05 10:47:16 -04:00
Alessandro Bruzzese fea73081e5
Trasleted move.ts in italian (#490)
* Added Italian translations for ability.ts and other element

* traslated move.ts
2024-05-05 10:46:56 -04:00
Benjamin Odom faf1c0bce6 Small Typo when Learning a TM
Fixes a small typo when learning a tm. The incorrect escape character was being used and no escape character was being used for Spanish.
2024-05-05 10:45:47 -04:00
Greenlamp 3ee9c39975 disable the gamepad support when the option is on OFF 2024-05-05 10:45:18 -04:00
Madi Simpson e4b8bffdec stat change phase: only display comma before and if there are 3 or more stats 2024-05-05 10:45:00 -04:00
Akuma-Reiki b076dec346
Add Candy Progress UI to Starter Selecgt (#479)
Co-authored-by: Samuel H <flashfireex@gmail.com>
2024-05-05 10:35:14 -04:00
Greenlamp2 d98f7733d4
Rework - Inputs management to include all gamepad mapping V2 (#429)
* rework of the input handling, including different gamepad and keyboard

* rework of the input handling, including different gamepad and keyboard

* first version of a too complex inputHandler based on phaser3-merged-input

* removed useless control management and kept it simple for our use case, investigating to put out button_XX()

* renamed inputHandler to inputController

* aggregate directions and some action into a same method + fix menu return value

* added back repeated input feature on keeping down a key

* cleanup + return type

* fix submit/action doing two things simultaneously, still same behaviour as before

* extracted UI inputs out of battle-scene

* tab -> spaces

* tab -> spaces what about now github ?

* tab -> spaces final (maybe)

* tried to fix the plugin loading issue on prod

* remove Plugins things as it's too uncertain how it works on prod

* seems old code source is indented with tab

* cleanup

* cleanup

* cleanup

* putting in an enum file the enum buttons

* fix repeating stats button + change message in event when the key is repeating

* added return type for ui-inputs

* added return type for inputs-controller

* adapted the code to integrate changes of bennybroseph
2024-05-05 10:30:00 -04:00
Benjamin Odom 3ed7649ce5
Remove Debug Code (#480)
Remove code intended only for debugging.
2024-05-05 18:45:54 +10:00
Ivan Perez 3a218eb92b
Fixed a bug where a yawned target in a semi-vulnerable state would be stuck in that state (#396) 2024-05-05 00:35:47 -05:00
Reldnahc 7cdf07c050
have arena tags check their sides. (#447)
* have arena traps check their sides.

* make sure we check the right tags layers
2024-05-05 00:27:46 -05:00
Benjamin Odom dd76cbc7a2
Add Setting to Swap A and B on Gamepad (#474)
* Add Setting to Swap A and B on Gamepad

Added a new setting to swap the A and B button on controller. Defaults to off which retains the current behavior on live.

* Add comments
2024-05-05 01:25:57 -04:00
Madmadness65 5440c0b40c Add B2W2 Legendary Titan Theme
This is a small part of a larger addition of music, added before the rest due to it being a B2W2 track.
2024-05-04 22:48:23 -05:00
Benjamin Odom daa6e3b3a8
Prevent Fusion Status Errors +Fix Double Battle Issue (#472)
* Reapply "Prevent Fusing Status Errors (#465)"

This reverts commit 18a1c152c0.

* Update phases.ts
2024-05-04 22:16:59 -05:00
Alessandro Bruzzese 41f9420c90
Added Italian translations for ability.ts and other element (#471) 2024-05-04 21:00:28 -05:00
Madmadness65 18a1c152c0 Revert "Prevent Fusing Status Errors (#465)"
This reverts commit 68eca464f7.
2024-05-04 20:50:48 -05:00
Madi Simpson 96d7fdd3f9
Implement Water Shuriken Battle Bond condition (#466)
* moves: water shuriken hits 3x 20bp in ash greninja forme

* moves: remove fusion checks
2024-05-04 20:50:12 -05:00
Madi Simpson 2c003854e9
terrain: psychic terrain doesn't block priority moves on the user's side (#470) 2024-05-04 20:45:37 -05:00
Benjamin Odom 68eca464f7
Prevent Fusing Status Errors (#465) 2024-05-04 20:37:31 -05:00
Benjamin Odom d170aeeab6
Updated Learnset of Gen2 to Indigo Disc (#469)
* Updated Learnset of Gen1 to Indigo Disc

Not many changes here for how much time it takes to comb through, but here it is.

Only notable change is Power-Up Punch got removed this gen so it had to be removed from Hitmonchan's learnset. Are we okay with this change? If so, this is good to go for Gen 1.

* Updated Learnset of Gen2 to Indigo Disc

Notable changes:

Porygon 2 loses Magic Coat with no replacement.

Ho-oh loses Burn Up but gains Overheat.

The rest seems better or neutral.
2024-05-04 20:27:01 -05:00
Madmadness65 1792b98608 Implement Genesect's forms & Techno Blast
Genesect's Drive forms does not change it's typing, only Techno Blast's type.
2024-05-04 19:45:07 -05:00
Madi Simpson 6151ec0e49
modifiers: pp up/max now also shows pp (#467) 2024-05-04 19:31:25 -05:00
Madi Simpson b2c74cfc90
Implement Opportunist (#460)
* abilities: implement opportunist

* abilities: make it not infinitely loop like a dummy

* abilities: properly ignore only opportunist on opportunist boosts

* abilities: rename some things to make a bit more sense
2024-05-04 18:38:53 -05:00
Madmadness65 4e0bf8f5a1 Adjust Tyrogue egg move
Mach Punch was unnecessary, as Hitmonchan gets it via level up. This provides a good setup option for all three evolutions.
2024-05-04 18:37:04 -05:00
Akuma-Reiki 92fb8b715e
Added Candy Progress UI (#463)
* Added Candy Progress UI

* GetRootSpecies rather than colors of current Species
2024-05-04 18:29:48 -04:00
LaukkaE 620a92aace
Bugfix Tickle, Tearful Look, Decorate (#464) 2024-05-04 17:28:15 -05:00
nrawicz cd7de10722
Expanding force hotfix (#459)
* Expanding Force Implementation

Added target change attribute based on terrain

* Class change I guess

* Expanding Force Implementation

Added target change attribute based on terrain

Class change I guess

Squashed weird split commit

* Fixed removed commits

My bad

* ACTUALLY fixed removed commits

* Expanding Force Hotfix

Fixes a bug where Expanding Force would not act as a multi-target move in the MoveEffectPhase while in psychic terrain
2024-05-04 13:28:44 -05:00
Benjamin Odom f53c699d04 Updated Learnset of Gen1 to Indigo Disc
Not many changes here for how much time it takes to comb through, but here it is.

Only notable change is Power-Up Punch got removed this gen so it had to be removed from Hitmonchan's learnset. Are we okay with this change? If so, this is good to go for Gen 1.
2024-05-04 13:43:07 -04:00
Flashfyre a7af14b8e2 Fix fusion token weight at 1000 2024-05-04 11:54:00 -04:00
nrawicz da5615eb4a
Implement Expanding Force (#417)
* Expanding Force Implementation

Added target change attribute based on terrain

* Class change I guess

* Expanding Force Implementation

Added target change attribute based on terrain

Class change I guess

Squashed weird split commit

* Fixed removed commits

My bad

* ACTUALLY fixed removed commits
2024-05-04 10:52:24 -05:00
Flashfyre 3d2f31eb4f Fix endure token weight 2024-05-04 11:50:15 -04:00
Lugiad d77ae729c0 Minor Update to French battle.ts
Thanks to @Dakurei for this nice compromise
2024-05-04 11:01:18 -04:00
Lugiad 3de4b9cd12 Minor Update to French battle.ts 2024-05-04 10:49:50 -04:00
Flashfyre 5b4f1da854 Fix level capped party members not gaining friendship 2024-05-04 00:19:50 -04:00
Benjamin Odom b529eee5ac
Add Form Text to Starter UI (#446)
* Add Form Text to Starter UI

Adds text to the starter screen UI which indicates which Form you are currently selecting. This helps with Pokémon who don't have a sprite change for their form because it doesn't affect them until later.

* Make Title Case
2024-05-04 00:02:55 -04:00
Benjamin Odom 5d6181926a Removed Hardcoded Values
Realized there was an enum for the -1 value which should help clear up confusion if someone has to mess with this code later
2024-05-03 23:26:56 -04:00
Tempoanon fabd2b1550
Add in missing import (#445) 2024-05-04 12:40:34 +10:00
Tempoanon 5b44905b86
Fix Shedinja passive, mummy passive, acupressure, moody, and added a second move override (#369) 2024-05-04 12:30:23 +10:00
Tempoanon f9abc50d8b
Add Neutralizing Gas message, display Manaphy egg gacha origin, allow catching wonder guard bosses (#322)
* Add Neutralizing Gas message, display Manaphy egg gacha origin, allowcatching wonder guard bosses

* Add edge cases of supressed/overriden wonder guard bosses
2024-05-04 12:29:30 +10:00
Tempoanon 4163005f12
Implement Forewarn, Frisk, and BattlerTags for Magnet Rise (WIP) (#241)
* Implement Forewarn, Frisk, and BattlerTags for Magnet Rise (WIP)
2024-05-04 12:10:40 +10:00
Benjamin Odom e02b85629f Fix Enemy Counter Moves
The AI couldn't decide who to target with CounterDamageAttr  moves which don't need a target. This change makes an exception. Now functions the same as when the player selects one of these moves.
2024-05-03 21:00:56 -04:00
Madmadness65 ed24e03a6f Fix Groudon's passive
Changed from Flame Body to Protosynthesis, the original change wasn't discussed enough.
2024-05-03 19:35:07 -05:00
Madmadness65 cfee310350 Adjust more passive abilities
Changes some of the more problematic passives some Pokémon had. As usual, if there's any that you may have a problem with, we are always up for suggestions.
2024-05-03 19:21:02 -05:00
Lugiad 77c3a5ad78
Minor update to French battle.ts (#438)
* Minor update to French battle.ts

Added missing spaces before some exclamation marks

* Minor Update to French battle.ts
2024-05-03 18:07:51 -05:00
Lugiad 0c9402a649
Update French tutorial.ts (#437)
Changes made after in game test
2024-05-03 18:07:06 -05:00
Lugiad 75cbe4fe2c
French Update to menu.ts (#436) 2024-05-03 17:43:32 -05:00
Flashfyre 754fe434e6 Update biome pools for various legendaries and regionals 2024-05-03 18:37:46 -04:00
ArceUseless 19e434929c
Spanish translations (#422)
* Spanish translations for intro messages and some menus. Added Empty (save file) to lang files

* Spanish translations + new literals in all langs

---------

Co-authored-by: rnicar <rj.nieto.car@gmail.com>
2024-05-03 17:52:09 -04:00
gericocross 6f446324db Longer descriptions don't stuck shorter ones anymore 2024-05-03 17:43:13 -04:00
Madi Simpson 06ae04abad bugfix: ensure hit recoil moves always do at least 1hp in recoil 2024-05-03 17:10:50 -04:00
Madi Simpson d48f0aa97d
Implement Anger Shell and Berserk (#421)
* abilities: implement anger shell and berserk

* abilities: fix small typo causing berserk to raise speed instead of spatk

* abilities: condense battlestats into an array instead of multiple attrs
2024-05-03 15:55:46 -05:00
Benjamin Odom 313fdc0e42 Fix Venom Drench not working on Toxic Status 2024-05-03 16:48:11 -04:00
Benjamin Odom 3b61662bba Fixed Mighty Cleave not being a Slicing Move 2024-05-03 16:18:29 -04:00
Matt Ross 1484a52fd7
Add variable power attribute for knock off (#426)
* feature/add-variable-power-knock-off

* Remove console logs
2024-05-03 15:54:21 -04:00
Madi Simpson cbf06ffa2c bugfix: ensure direct stat modifying moves update both pokemon's stat info 2024-05-03 15:12:48 -04:00
Madmadness65 9a559c8d6a Update passive abilities for legendaries
This is the first batch of passive ability revisions, this one directed at legendary and mythical Pokémon.
2024-05-03 14:04:43 -05:00
Flashfyre 71705dd6d4 Add candy popup sound 2024-05-03 15:03:11 -04:00
Flashfyre 9fc6bdde21 Revert "Rework - Inputs management to include all gamepad mapping (#390)"
This reverts commit 70324c4159.
2024-05-03 13:04:32 -04:00
Greenlamp2 70324c4159
Rework - Inputs management to include all gamepad mapping (#390)
* rework of the input handling, including different gamepad and keyboard

* rework of the input handling, including different gamepad and keyboard

* first version of a too complex inputHandler based on phaser3-merged-input

* removed useless control management and kept it simple for our use case, investigating to put out button_XX()

* renamed inputHandler to inputController

* aggregate directions and some action into a same method + fix menu return value

* added back repeated input feature on keeping down a key

* cleanup + return type

* fix submit/action doing two things simultaneously, still same behaviour as before

* extracted UI inputs out of battle-scene

* tab -> spaces

* tab -> spaces what about now github ?
2024-05-03 12:59:10 -04:00
Dario Krause c44ec421b0 Update pokemon.ts 2024-05-03 12:05:45 -04:00
Xavion3 c7c4deb416 Implement Sniper 2024-05-03 12:05:20 -04:00
Lugiad e082dd9089
Minor correction to apostrophes in French menu-ui-handler.ts (#415) 2024-05-03 09:51:00 -05:00
Xavion3 bc319a8eda Fix eggs during dailies 2024-05-03 10:28:40 -04:00
Paul Beslin 24a9dba2c4 Fix attacks with charge (solar beam, dig...) allowing to switch target on second turn 2024-05-03 08:35:31 -04:00
Benjamin Odom b84a4b4ee5 Fix Shedinja PPused Share
Fixed having Shedinja share PP usage with the Ninjask it evolved from and vice versa.

The solution was to make a deep copy of each move in the moveset array rather than copying the array itself.
2024-05-03 08:33:33 -04:00
Jaime f7b391746e Fix Gyro Ball only checking base stat 2024-05-03 08:32:39 -04:00
Matt Ross fbc0800571
Issue/smack down should cancel fly (#407)
* Smack down and thousand arrows should cancel charging fly

* Remove console log

* Update interruptible check to use flying tag instead of move history

* Remove extra comma
2024-05-03 01:20:41 -04:00
Madmadness65 6011794732 Minor egg move fix
Gen 8 fossils unintentionally had Earthquake. They have now been replaced.
2024-05-02 21:58:38 -05:00
Flashfyre b30ab6136e Starter friendship for candies is split between spliced species 2024-05-02 21:55:11 -04:00
Simoninoo 67431fb83b
Patch Ita (#399)
* Syntax correction

* Tutorial translation
2024-05-02 20:45:45 -04:00
Benjamin Odom fec8771830 Fix Shedinja Luck and Crash
Shedinja wasn't taking the luck value from Ninjask so when it calculated its luck it just took the entire fused Pokemon's luck somehow. This has been fixed so it takes both the first and second part of the fusion's luck values instead.

Also fixes an issue where Shedinja crashed the game if it was the second part of a fusion combo. Now the correct pokemon species gets checked against and the correct pokemon evolution occurs to create Shedinja.
2024-05-02 17:55:45 -04:00
Flashfyre 991f097e9e Rebalance friendship and add starter friendship with candy reward 2024-05-02 17:48:08 -04:00
Benjamin Odom 9d8f7ddcf0
Implement Tailwind (#398)
Added a new ArenaTagType for Tailwind. Lasts 4 turns including the turn used.
2024-05-02 14:10:21 -05:00
Madmadness65 ddb4383b1f Move Porygon line down to Rare in Factory biome
This makes the Porygon line more common than before.
2024-05-02 14:01:57 -05:00
Flashfyre 3a7a48fe83 Temporarily disable error handling 2024-05-02 09:00:36 -04:00
James Lin 0185dd639e
Catch global errors and rejected promises and display them in an alert box. (#351)
* Catch errors and rejected promises.

* Clean up
2024-05-02 08:44:10 -04:00
Lugiad 10506f9cf5
Update italian pokemon-stat.ts (#389)
* Update italian pokemon-stat.ts

* Update italian pokemon-stat.ts
2024-05-02 08:37:05 -04:00
Lugiad 71893e8428 Update Spanish fight-ui-handler.ts 2024-05-02 08:36:33 -04:00
Lugiad a1bb0e7baf
Updated French transaltion for tutorial.ts (#375)
Translation of "statChange" + some remaning typos
2024-05-01 23:26:24 -05:00
Xavion3 6d9424e431
Implement Gastro Acid (#393) 2024-05-01 23:22:30 -05:00
Flashfyre ba5bef123c Load missed master achievement bar 2024-05-01 19:42:06 -04:00
Flashfyre 86b0596a60 Add rogue achievement and voucher tier 2024-05-01 19:28:07 -04:00
Benjamin Odom ad59c0a7c4 Fixed Rounding Error For TargetHalfHpDamageAttr
Moves that deal half of a target's HP were not able to deal damage if the target had 1 HP. Used Math.max to ensure 1 is the lowest this value ever evaluates to.
2024-05-01 19:14:18 -04:00
Flashfyre 6ac224ab8a Refactor to split battle messages from menu 2024-05-01 18:54:35 -04:00
TeKrop e34b204664 feat: added support for localisation on battle scene sentences 2024-05-01 18:54:35 -04:00
Flashfyre 89e2642d91 Fix update issue for battle stats display 2024-05-01 18:24:21 -04:00