Commit Graph

1074 Commits

Author SHA1 Message Date
Karthik
ee5928622f
Gen VII: Backport Psychic Terrain priority hint (#8262) 2021-05-02 19:36:52 -05:00
Kris Johnson
497d3a6972 Add May 2021's OMotM, LCotM, and RoA Spotlight 2021-05-01 01:21:59 -06:00
Instruct
df2cb402b4
SSB: Fix fart's signature move from refactor (#8245) 2021-04-30 21:39:39 -07:00
Kris Johnson
5b8dfc7d8e [Gen 1] Japanese OU: Allow Japanese event moves 2021-04-30 01:55:06 -06:00
May Evans
d2f9d52403
Gen 1: Fix Japanese OU and Tradebacks OU legality (#8242)
* [Gen 1] OU Standard rules, fix validator rule name

erm...

* Fix [Gen 1] Japanese OU & Tradebacks OU

- [Gen 1] Japanese OU shouldn't use the Nintendo Cup 1997 Legality unless you want it to be "RG OU" or something. If so, the name should be changed for accuracy.
- [Gen 1] Tradebacks OU shouldn't complex ban those combinations, the Stadium 2 relearner fixes them all.

* I really did do that huh
2021-04-30 01:44:56 -06:00
Kris Johnson
246b667c03 Add [Gen 1] Japanese OU 2021-04-27 20:48:48 -06:00
Kris Johnson
dc57eb71dc Gen 1: Move Raichu to NUBL 2021-04-27 20:33:48 -06:00
pyuk-bot
fa974427ef
Migrate terrains from onTerrain to onResidual (#8232) 2021-04-25 13:00:37 -07:00
Guangcong Luo
f513c619b0 Fix bugs from Residual refactor 2021-04-25 12:14:03 -07:00
Instruct
a84ab6cc04
SSB: Refactor Ic3peak's echoed voice modifier (#8231) 2021-04-25 11:35:39 -07:00
Guangcong Luo
f9fdc73133
Support per-pokemon Residual handlers in Side/Field conditions (#8222)
For side conditions, `onStart`/`onRestart`/`onResidual`/`onEnd`
have been renamed `onSideStart`/`onSideRestart`/`onSideResidual`/`onSideEnd`,
with the `onResidualOrder` properties renamed `onSideResidualOrder`.

For field conditions, `onStart`/`onRestart`/`onResidual`/`onEnd`
have been renamed `onFieldStart`/`onFieldRestart`/`onFieldResidual`/`onFieldEnd`,
with the `onResidualOrder` properties renamed `onFieldResidualOrder`.

(The `onField` and `onSide` part helps make it clear to the type system
that the first argument is a Field or Side, not a Pokemon.)

Side and field conditions can now use `onResidual` to tick separately
on each pokemon in Speed order. `onResidualOrder` (the per-pokemon
tick) can be timed separate from `onSideResidualOrder` (the
per-condition tick), allowing conditions to end at a different priority
than they tick per-pokemon.

Relatedly, `onTeamPreview` and `onStart` in formats now need to be
`onFieldTeamPreview` and `onFieldStart`.

Unrelatedly, `effectData` has been renamed `effectState`, and the
corresponding state containers (`pokemon.statusData`,
`pokemon.speciesData`, `pokemon.itemData`, `pokemon.abilityData`,
`field.weatherData`, `field.terrainData`) have been similarly renamed. I
renamed the types a while ago, but I was holding off renaming the fields
because it would be a breaking change. But this is a breaking change
anyway, so we might as well do it now.

Note: `onResidual` will tick even on `onSideEnd` turns, although
`onSideResidual` won't. When refactoring weather, remember to
check `this.state.duration` so you don't deal weather damage on the
ending turn.

Intended as a better fix for #8216
2021-04-25 10:55:54 -07:00
pyuk-bot
66c547432b
Fix Parental Bond to modify damage, not base power (#8226) 2021-04-25 12:06:27 -04:00
urkerab
9a18ada1f9
Grassy Terrain should only weaken moves against grounded targets (#8224) 2021-04-24 18:04:31 -05:00
Guangcong Luo
486f292904
Refactor everything to use Utils.sortBy (#8220)
A few uses of `array.sort()` have been left alone:

- sorting in `data/` because they aren't supposed to import anything

- `set-importer` because I still have no clue what that's for and what
  dependencies it is/isn't allowed to have

- `sort()` with no arguments used as a lexical sort (at which point
  `sortBy` offers no benefits)

All other cases have been replaced with `Utils.sortBy`, which should
be a massive increase in readability.

Sort orders should be much more readable now, without needing to puzzle
through sign issues. The order is always low-to-high, A-to-Z,
true-to-false.
2021-04-23 22:41:00 -07:00
Kris Johnson
a1bdafbfe8
Add room sections (#8205) 2021-04-23 22:39:56 -07:00
InAShellnut
9ab4c86fe3
Add Stadium 2, Nintendo Cup 1997, and Nintendo Cup 2000 (#8195)
An implementation of Nintendo Cup 1997, Nintendo Cup 2000, and Pokemon Stadium 2, for Pokemon Showdown. The only thing which has not been implemented was showing the exact health of both Pokemon in Pokemon Stadium 2, however implementing that requires changes to the showdown client. The Nintendo Cup 1997 code was done by Enigami, and the rest was by myself (Shellnuts).

This should fulfill the requirements asked by the following accepted suggestions:
https://www.smogon.com/forums/threads/please-add-a-pok%C3%A9mon-stadium-2-simulator-in-showdown.3679486/
https://www.smogon.com/forums/threads/add-nintendo-cup-1997-and-2000-as-challenge-only-formats.3653454/
2021-04-22 00:54:14 -07:00
Instruct
7f856ac3a4
SSB4: Support Same Type Clause (#8210) 2021-04-21 09:02:54 -07:00
Karthik
8963e4ace4
Gen 1: Don't allow Pokemon to recharge if frozen (#8211) 2021-04-19 12:45:44 -04:00
pyuk-bot
3639079d1f
Protective Pads should not apply to Gulp Missile (#8207)
Co-authored-by: Leonard Craft III <leonardcraft64@gmail.com>
2021-04-19 12:39:33 -04:00
Kris Johnson
d0fd8ac8e0 Fix build 2021-04-16 21:47:38 -06:00
Kris Johnson
284b8f2df0 Shared Power: Fix bug 2021-04-15 18:58:07 -06:00
Kris Johnson
568e99b0e5 Shared Power: Fix more abilities 2021-04-15 16:33:13 -06:00
Kris Johnson
fc60b76c48 Add new Pet Mod of the Season 2021-04-13 20:55:47 -06:00
Marty-D
57049728e2
Gen I: Remove superfluous inheritance 2021-04-12 11:05:10 -04:00
Marty-D
94840470c3 Make sure Bide actually ends 2021-04-12 10:52:46 -04:00
Annika
3ca947225f Random Battles updates 2021-04-09 17:13:18 -07:00
Annika
2baca9339d Random Battles: Fix STAB in 4-player battles 2021-04-09 16:23:23 -07:00
Guangcong Luo
5233559183 Refactor Dex types 2021-04-08 07:08:56 -07:00
Guangcong Luo
13189fdb02
Update Dex API (#8181)
This is the change that renames:

- `Dex.getMove` -> `Dex.moves.get`
- `Dex.getAbility` -> `Dex.abilities.get`
- `Dex.getItem` -> `Dex.items.get`
- `Dex.getSpecies` -> `Dex.species.get`
- `Dex.getEffect` -> `Dex.conditions.get`
- `Dex.getNature` -> `Dex.natures.get`
- `Dex.getType` -> `Dex.types.get`
- `Dex.getFormat` -> `Dex.formats.get`

In addition, some other APIs have been updated:

- `getByID` methods have also been added to every other table.
- `Dex.moves.all()` now gets an array of all moves
  - Plus equivalent methods for `abilities`, `items`, `species`, `formats`, `natures`, `types`
  - Note: there's no `Dex.conditions.all()`
- new API: `Dex.stats` for naming/iterating stats
- `Dex.getEffectByID` -> `Dex.conditions.getByID`
- `Dex.getType` -> `Dex.types.get`
- `Dex.data.Formats` -> `Dex.data.Rulesets`
- `Dex.formats` -> now an array `Dex.formats.all()`
- `Dex.getRuleTable` -> `Dex.formats.getRuleTable`
- `Dex.validateFormat` -> `Dex.formats.validate`

Team functions have been split off into a new `sim/teams` package:

- `Dex.packTeam` -> `Teams.pack`
- `Dex.fastUnpackTeam` -> `Teams.unpack`
- `Dex.generateTeam` -> `Teams.generate`
- `Dex.stringifyTeam` -> `Teams.export`

`Teams.export` has also been rewritten to better match how it works in client.

This implements #8178
2021-04-08 03:00:37 -07:00
Kris Johnson
418b5dcbe8 Rename Gen 7 Mix and Mega's mod 2021-04-06 17:43:59 -06:00
pyuk-bot
ab722b5b73
Fix repeat mega evolution in Megas For All (#8177) 2021-04-04 18:29:14 -04:00
Kris Johnson
10eb793c92
Pokebilities: Fix various ability interactions 2021-04-03 01:40:35 -06:00
Kris Johnson
1462dafbc4 Gen 1: Move Poliwrath to NUBL 2021-04-02 00:02:48 -06:00
Instruct
c61999b5b7
SSB4: Clean up files to remove AFD stuff (#8160)
* Update random-teams.ts

* bye bye

* a
2021-04-01 23:40:25 -06:00
Kris Johnson
ebf13740f4 Shared Power: Fix Trace and Mirror Armor 2021-04-01 19:42:32 -06:00
Kris Johnson
876b09b010 OMotM/LCotM: Update bans/fix bugs 2021-04-01 17:25:41 -06:00
Guangcong Luo
929963261d Fix crash in Mix and Mega 2021-04-01 08:25:33 -04:00
Guangcong Luo
44ef998ecc Implement free-for-all
This involves a huge refactor for how battles are constructed, but
it's totally worth it.

Currently, tournaments, challenges, and laddering are unsupported; only
unrated searches work. But it does work, and it's beautiful.
2021-04-01 04:44:16 -07:00
Kris Johnson
931b6caf8f Add April 2021 OMotM/RoA Spotlights 2021-04-01 03:52:36 -06:00
Guangcong Luo
622645cd04 Fix crash in addSideCondition 2021-03-31 22:38:24 -07:00
Spandan Punwatkar
b77d6cb20f
Add simulator support for multi battle (#7929)
This doesn't include matchmaking support (which had to be removed
for reworking), but it includes everything else.

Co-authored-by: Spandamn <spandan.punwatkar@gmail.com>
Co-authored-by: MacChaeger <msaimrkon@gmail.com>
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2021-03-31 22:22:25 -07:00
Guangcong Luo
3b5e8cbfc2
Refactor for multi battles (#8152) 2021-03-31 20:27:07 -07:00
HoeenHero
4d29897b42 SSB: Simplify line missed during review 2021-03-31 23:25:47 -04:00
Instruct
1f7bf2deed
Add Super Staff Bros 4 Wii U (April Fools' prank) (#8148)
* Add new SSB meta

* Update random-teams.ts

* Fix issues

* Complete the meta

* Fix links

* fix

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/ssb/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/ssb/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/ssb/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/ssb/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* review

* Update data/mods/ssb/moves.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/ssb/random-teams.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/ssb/moves.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/ssb/moves.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/ssb/moves.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/ssb/moves.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/ssb/moves.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/ssb/moves.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/ssb/moves.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/ssb/moves.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* simplify code

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-03-31 20:21:43 -07:00
Instruct
ea9ea5c16f
SSB: Small tweaks (#8143)
* SSB: Small tweaks

Boat's move should bypass mbounce. Perish gets meme text.

* uwu

* Cake should no longer get refresh

* Thanks Freudian Slip
2021-03-30 12:31:21 -06:00
Guangcong Luo
d18c0a4e1f Refactor more things to use pokemon.allies/foes
(This will make multi battles easier to implement.)
2021-03-28 20:06:18 -07:00
Guangcong Luo
ed454ef76a
Refactor scripts to battle-actions (#8138)
This introduces a new class, BattleActions, available as `battle.actions`,
moving all functions from `data/scripts.ts` to `sim/battle-actions.ts`.

This makes it so that "go to definition" will now work correctly for
functions previously in scripts; we no longer need UnimplementedError,
and there's now a clean conceptual separation between `battle` and
`battle-actions` (whereas the previous distinction between `battle` and
`scripts` was basically nonexistent).

This will be a difficult migration if you maintain a fork with custom
scripted mods. I'm sorry! Migration instructions are here:

https://github.com/smogon/pokemon-showdown/pull/8138
2021-03-28 12:01:38 -07:00
Annika
9e7074572e Random Battles update 2021-03-26 15:45:59 -07:00
Guangcong Luo
619a1e228d
Stadium: Apply BRN Atk drop once instead of 5x (#8139) 2021-03-25 23:38:55 -07:00
Annika
0c2563ddc2
SSB: Give Lilypad Overflow 62 BP
Requested by instruct.
2021-03-24 23:11:56 -07:00
Instruct
fb471f8569
SSB: Fix description of Lilypad Overflow (#8137) 2021-03-23 17:05:01 -07:00
HematiteH2O
409d5acfef
Megas for All: Minor Ability polish (#8136)
* Megas for All: Minor Ability polish

* Attribute Arena Rock to the proper source
* Don't always animate delayed moves when the user is KOed
* Add visual indicator of which Pokémon currently has Gravitational Pull
* Damage the correct Pokémon with Stealth Rock and G-Max Steelsurge through Gravitational Pull

* Megas for All: Minor Ability polish

* Don't animate delayed moves through Long Whip unless the user is active - it gets very weird if it tries when the user is absent, because most of the animations bring back the user and then it just hangs out indefinitely behind the other Pokémon and... it's very funny but also not correct
2021-03-23 15:00:27 -06:00
Kris Johnson
5e6c259dec
Gen 3/4: Remove HAs in getSpecies (#8134) 2021-03-23 10:19:50 -07:00
HematiteH2O
654a106df4
Megas for All: Slates 30 and 31, balance/bugfixes (#8114)
* Megas for All: Slate 30 and balance/bugfixes

Adding all four new Abilities from Slate 30 (Pool Floaties, Red Licorice, Stygian Shades and Long Whip), but also fixing issues with various other Abilities, including minor balance changes to Savage, Heavenly Techniques, Body of Water and Forgery, and bugfixes to Forgery (again), Seismic Scream and Settle.

* Megas for All: Slate 30 ability (Long Whip)

This is so convoluted, but it has to be able to stack with itself as many as five times over, so I hope this is okay. Let me know if there's a way to streamline this! (and same for Settle, for that matter)

* Megas for All: Slate 30

* Megas for All: Add slate 30 stones

* Megas for All: Update Court Change

* Megas for All: Add slate 30 Mega Evolutions

* Megas for All: Slate 30 and balance changes

Forgery can no longer fake a Z-Crystal, so the entire section dedicated to making that work is no longer necessary. However, there's a new form of non-groundedness that needs to be added (the new 'poolfloaties' volatile), and I also modified the damage section slightly because Settle and Body of Water have some weird interactions, and this was the best way I could find to handle them with perfect accuracy. (For reference, Settle is meant to use the user's physical Attack stat without actually becoming a physical move for any other intents or purposes, while Body of Water is now about halfway to the Body Press effect but keeps the user's offensive stat changes rather than its defensive ones.)

* Megas for All: Add two new move modifiers

* Megas for All: Add missing trailing comma

* Megas for All: Improve Red Licorice ability

* Update abilities.ts

Okay I do think this was at least part of the problem so I'm gonna address that first

* Update scripts.ts

* Megas for All: Fix Cinccino and Falinks

Just fixing two minor errors that came up since the last time I touched this patch

* Update data/mods/megasforall/abilities.ts

Co-authored-by: Annika <annika0uwu@gmail.com>

* Megas for All: Define bladeMoves only once

(okay I was so tired when I worked on this code and I'm actually very embarrassed to see that there are three of these in quick succession and I only changed two of them ._.
so uh! clearly Annika's suggestion not to define it three separate times in the first place is the right call XP)

* Update data/mods/megasforall/abilities.ts

Co-authored-by: Annika <annika0uwu@gmail.com>

* Update scripts.ts

* Megas for All: Abilities for slate 31 and bugfixes

* Revise some shortDescs so they can fit better
* Accommodate for Illusion in some messages (previously, they gave away the Pokémon's real name)
* Revise Forgery (again) - it can no longer copy Mega Stones, and it no longer wears off when the user is hit
* Improve the functionality of Clairvoyance (for consistency with Future Sight and other delayed moves)
* Preserve type change indicators for SOS and Stance Change (established convention is for every Mega in the mod to have these regardless of whether it has changed type, but they disappear when changing form)
* Make sure Sticky Gel doesn't ignite more than once at a time (has been happening)
* Add an activation message to Stygian Shades to reduce confusion
* Overhaul Long Whip (now compatible with the varying base powers of Triple Axel and Triple Kick; now decides accuracy at the start and guarantees that every subsequent hit will land; now persists after the source faints and behaves more similarly to other delayed moves)
* Add new Abilities from slate 31, the very over-the-top complicated Gravitational Pull and the refreshingly simple Chakra Lock

* Megas for All: Improve functionality of Long Whip

* Megas for All: Slate 31

* Megas for All: Slate 31 stones

* Megas for All: Slate 31 compatibility

Modify all entry hazards to account for Gravitational Pull and Triple Axel and Triple Kick to account for Long Whip

* Megas for All: Add slate 31 forms

Add Mega Torterra, Mega Infernape and Mega Empoleon and revise Mega Zoroark's stats

* Megas for All: Slate 31 moves and balance changes

* Megas for All: Minor Ability corrections

* Megas for All: longWhipBoost

* Update moves.ts

* Megas for All: Fix Long Whip

* Megas for All: Fix Alchemist

SHOOT sorry I skipped over this
Meant to do it in the same commit
That was just a copying error

* Apply suggestions from code review

Aaaaa thank you so much! ;u;

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Megas for All: Condense Long Whip conditions

WOW this saves so much space I never knew you could do that

* Update conditions.ts

Co-authored-by: Annika <annika0uwu@gmail.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-03-23 02:34:41 -06:00
Instruct
6c5a97e342
SSB4: Bugfixes and Balance changes (#8109) 2021-03-22 22:06:59 -04:00
ACakeWearingAHat
00bd42826f
Random Battles: Updates to Gen 5 (#8127) 2021-03-20 17:31:36 -07:00
Kris Johnson
3f5ef2e510 Add more Retro OMs 2021-03-19 19:58:18 -06:00
Annika
ff56f7e503 Random Battles update 2021-03-19 18:28:08 -07:00
Marty-D
1240cb6195
Gen II: Fix Mean Look and Spider Web flags 2021-03-19 18:02:01 -04:00
Annika
8a587b1746 Random Battles: Allow 1 Ditto per game in Gen 1/2 2021-03-18 16:35:01 -07:00
Annika
c7fd226253 Random Battles: Remove extraneous break statements 2021-03-16 17:23:27 -07:00
Instruct
8105b4121a
SSB: Remove Easter Egg (#8121) 2021-03-16 04:37:29 -07:00
Annika
04f2e7d588 Random Battles update
https://www.smogon.com/forums/threads/random-battles-changelog.3678462/#post-8779954
2021-03-11 11:17:15 -08:00
Annika
8e6c54e676 Random Battles: Scale levels for NUBL in Gen 1 2021-03-10 09:23:13 -08:00
Mia
4f710d3ce8 Remove random Monitor.slow() from random-teams 2021-03-10 08:41:27 -06:00
Annika
550a4df374
Random Battles: Refactor Gen 5-7 (#8106) 2021-03-09 19:49:47 -08:00
Annika
c8351c79e3 Random Battles: Add level scale for Gen 1 NU 2021-03-08 18:23:45 -08:00
Kris Johnson
3fbaa90ddd Add Gen 1 NU 2021-03-08 17:21:37 -07:00
ACakeWearingAHat
46733b2fd5
Gen 3 Random Battle updates (#8102) 2021-03-06 14:59:51 -08:00
Marty-D
e92bc94685 Gen IV: Fix Rough Skin
Little overzealous with the copypasting last time...
2021-03-06 14:33:57 -05:00
ACakeWearingAHat
d0eeeac7f0
Random Battles: Improve documentation (#8096) 2021-03-05 14:18:00 -08:00
Kris Johnson
56bff1708c Fix typo 2021-03-03 14:31:41 -07:00
Annika
13a870a4a3
Random Battles: Refactor Generation 4 (#8087) 2021-03-03 13:16:50 -08:00
Kris Johnson
cf44322310 Gen 1 Hackmons Cup: Fix mbstmin, add level cap 2021-03-03 13:37:58 -07:00
Kris Johnson
df6e109991 Megas for All: Fix crash 2021-03-03 12:54:10 -07:00
HematiteH2O
fcdfbca875
Megas for All: Slate 29 and ability fixes (#8089)
* Megas for All: Fix three abilities

This changes Blackmail primarily just to be more realistic, but there are also more important bugfixes to Forgery and Masquerade.

The previous version of Masquerade would activate the acquired Ability twice if, as in the case of Intimidate, it was supposed to activate on entry. This is because the Ability was replaced while the Pokémon was still starting, so it activated once when it was acquired (as it would by Skill Swap) and again as the Pokémon was still "entering." This fix makes it so such Abilities only activate once; it's also much neater and easier to edit than the messy version I had before.

The previous version of Forgery had problems whenever the Pokémon's item was consumed at the same time it was hit with a move; it would replace its item with Zoroarkite, then consume the Zoroarkite and be itemless, which in turn left it unable to activate the Ability.
I fixed this by making it acquire the item later on (after it would be consumed), and I also made the Ability itself check for a specific species instead of a specific item at the start, so it should still function in case Zoroarkite is ever not properly replaced (though it's also way more consistent at that now than before).

Let me know if there's anything else I should change about these! After testing, I think they work a lot better now than before, though. C:

* Megas for All: fix Unaware

The custom Ability Body of Water can give the effect of Body Press to special moves, so Unaware needs to ignore an attacker's Special Defense boosts when being attacked.

* Update data/mods/megasforall/abilities.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/megasforall/abilities.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update abilities.ts

* Megas for All: Add slate 29 abilities

* Megas for All: Add slate 29 stones

* Megas for All: Add slate 29 forms

(That's a lot of fish)

* Megas for All: Add slate 29 moves

and keep Alolan Dugtrio incompatible with Dugtrionite

* Megas for All: Shorten overlong line

* Apply suggestions from code review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Correct variable name after code review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-03-03 00:32:17 -07:00
Kris Johnson
880112b5f0 Max Berries: Fix Roseli Berry 2021-03-01 20:25:26 -07:00
Kris Johnson
87d9336898 Max Berries: Fix berry activation 2021-03-01 14:31:44 -07:00
Kris Johnson
72650f7762 Add March 2021 OMotM/LCotM/RoA Spotlight 2021-02-28 21:54:10 -07:00
Kris Johnson
aeecf8d24c
Dexsearch: Add support for searching by mods (#8064) 2021-02-28 14:37:00 -08:00
Kris Johnson
eafebc98b5 Actually fix Gen 1 HP DV generation 2021-02-28 11:41:42 -07:00
Kris Johnson
f33818a932 Remove unused variable 2021-02-28 11:34:52 -07:00
Kris Johnson
955df9944d Fix Gen 1 Challenge/Hackmons Cup DV generation 2021-02-28 11:32:34 -07:00
Kris Johnson
6ce1e311ef
Add Gen 1 Hackmons Cup (#8077) 2021-02-27 20:20:21 -08:00
HematiteH2O
f04cedae98
Megas for All: Nerf Hawlucha's ability Masquerade (#8071) 2021-02-23 18:01:15 -07:00
HematiteH2O
64f5a02e1c
Megas for All: Add Mega Evolutions from slate 28 (#8065)
* Update formats.ts

Ban Dragonitite in Megas for All in line with latest update

* Update abilities.ts

Megas for All: add slate 28 Abilities (Everlasting Winter, Forgery, Clairvoyance and Sleight of Hand)

* Update items.ts

Megas for All: add slate 28 Mega Stones (Ninetalesite, Zoroarkite and Delphoxite)

* Update pokedex.ts

Megas for All: add slate 29 Mega Evolutions (Ninetales-Alola, Zoroark, Delphox); buff Thievul; add battleOnly for Mega Evolutions with multiple base forms (this was causing issues before)

* Update scripts.ts

Megas for All: add new moves to Thievul, Delphox; add form requirement for Mega Ninetales; add compatibility with Mega Zoroark to Mega Evolution and Z-Move scripts

* Update items.ts

Megas for All: rename Delphoxite -> Delphite

* Update pokedex.ts

Megas for All: rename Delphoxite -> Delphite

* Update abilities.ts

Megas for All: correct line length and trailing spaces

* Update items.ts

Megas for All: correcting species string (caught by npm test)

* Update abilities.ts

* Update scripts.ts

* Update abilities.ts

Megas for All: improve Everlasting Winter
(It feels remiss of me not to specify this - Ninetales gets Rain Dance itself, so it would be awkward if it was that easy to overwrite Everlasting Hail even if no one would do it in a serious environment)
I just tested and can confirm this fix works more properly!

* Update data/mods/megasforall/abilities.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/megasforall/abilities.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update data/mods/megasforall/items.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-02-23 14:13:49 -07:00
Annika
591eb345ce
Random Battles: Refactor LGPE and Gens 1-3 (#8060) 2021-02-23 10:27:19 -08:00
Annika
68dde4c058
Implement RandomTeams#multipleSamplesNoReplace (#8059) 2021-02-22 11:42:25 -08:00
Annika
c2e97aaaed
Use optional chaining in more places (#8063) 2021-02-22 11:42:05 -08:00
ACakeWearingAHat
c9e431ed48
Random Battles: Bugfixes for Doubles and old generations (#8058) 2021-02-19 16:08:27 -08:00
Annika
bc5099b74b Megas for All: Remove non-breaking space character 2021-02-17 22:11:30 -08:00
Kris Johnson
31856b698e
ADV: Move Breloom to OU and Regice to UUBL
https://www.smogon.com/forums/threads/adv-ou-tiering-changes.3652636/#post-8757221
2021-02-17 16:54:34 -07:00
Marty-D
dfb4f2cd90 Implement buggy Trick/Switcheroo behaviour with Kyogre/Groudon
Thanks Zaggyo!
To be reverted assuming it's patched someday.
2021-02-17 13:53:01 -05:00
Annika
59cf608b53
SSB: Prevent transformations into the same forme (#8044) 2021-02-15 21:12:37 -08:00
Instruct
9e5693a338
SSB: Prevent Data Corruption from being reverted by forme changes (#8040) 2021-02-15 21:10:06 -08:00
Guangcong Luo
5b9a26ac7a Fix Stadium Counter 2021-02-15 21:03:54 -08:00
Guangcong Luo
1b281650c6 Rename Stadium to Gen 1 Stadium
This is required to add support for Stadium in unit tests. A lot of the
codebase assumes that all mods start with "gen" followed by a number,
but I don't want to touch the others at the moment.
2021-02-15 21:03:47 -08:00
Instruct
ae34b97c87
SSB: Change set generation to rely on weaknesses against types (#8032) 2021-02-14 16:32:46 -08:00
ACakeWearingAHat
0c42a8f5bf
Random Doubles Updates (#8029)
Patch notes (2/13/21):
-Prevent Virizion with 1 attack by preventing Coaching from generating with any other setup move.
-Prevent First Impression from generating with any setup move, for Sirfetch'd.
-Reject Protect if Belly Drum is in the movepool but hasn't been rolled, in an attempt to prevent Belly Drum-less Eiscue.
-Fix post-refactor bug causing heavy-duty boots to generate where it shouldn't
-Glastrier: Icicle Crash over Avalanche
-Keldeo: Muddy Water over Hydro Pump and Scald, added Air Slash.
-Regieleki: Electroweb over Eerie Impulse
-Various level balancing. Pokemon above 56.00% win rate nerfed. Pokemon below 46.00% win rate buffed. Highlights: Moltres-Galar, Regidrago, Calyrex-Shadow, Zacian-C down again, Maractus, Toxapex, Shuckle, etc. up. See pull request for full list of level changes.

Gen 7 Random Doubles: Remove Protect from Typhlosion to prevent Choice Scarf Protect.
2021-02-13 15:09:55 -08:00
Annika
57721b3ecb Prettify JSON for Gen 6 Battle Factory 2021-02-13 14:19:58 -08:00
ACakeWearingAHat
3b9c79624d
Battle Factory: Fix Slowbro and Arceus EVs (#8018) 2021-02-13 13:22:39 -08:00
Annika
864a37f66d Random Battles: Fix Gen 5 STAB move regression 2021-02-13 12:08:19 -08:00
Annika
bb4cbf3394
Random Battles: Refactor for code standards and readability (#8021)
This PR
- Brings all Random Battles code up to the standard 120-charaacter line length limit
- Improves readability for all Random Battles code
- Refactors current-gen Random Battles team generation to be more modular and readable

Documentation thanks to @ACakeWearingAHat!
2021-02-12 15:50:04 -08:00
Kris Johnson
03288d766d Stadium: Fix typo 2021-02-11 14:47:00 -07:00
May Evans
d9abd0f3cb
Stadium: Make Haze cure user's status (#8007) 2021-02-11 16:16:22 -05:00
Leonard Craft III
220cac3aa7
Convert modifiers from hex to decimal (#8003) 2021-02-10 17:02:18 -05:00
May Evans
7bbcad8be0
Gen 2: Ban JP Phanpy Event in Int Formats (#8013) 2021-02-10 00:35:32 +04:00
Instruct
67cc1fbe98
SSB: More Bugfixes (#8006)
* Fix 1-1 edgecase

* Fix winter hail not affecting hail based attacks
2021-02-07 23:18:29 -05:00
Instruct
e42dfe12d8
SSB4: Bugfixes (#7994) 2021-02-07 04:43:17 +04:00
park
4c3ea08dbd
Megas for All: Fix Mega Orbeetle
Mega Orbeetle ability fix in Megas for All was incomplete
2021-02-03 14:26:38 -07:00
Leonard Craft III
c9c16189f5 Gen I: Don't show recovery failure hint at full HP 2021-02-01 22:33:09 -06:00
Instruct
d8de06a83c
SSB4: Clarifications and Description Edits (#7976) 2021-01-31 20:34:49 -08:00
The Immortal
396b46b92c Random Battle fixes 2021-02-01 08:00:44 +04:00
Mia
76c10841ea
Lib: Add an index file for all exports (#7972) 2021-01-31 18:00:19 -08:00
Instruct
885a26381e
SSB: Properly display Gimmick's innate ability in /ssb (#7975) 2021-01-31 14:13:14 -08:00
The Immortal
7d5f9b455d Gen 5: Random Battle updates
- Various movepool improvements
- Prevent Toxic with setup or Trick Room
- Prevent Rain Dance with RestTalk
- Force Seed Flare and Horn Leech
- Reject Keen Eye
- Reject Intimidate so Shed Skin is rolled
- Fix Toxic/Flame Orb selection
- Improve Leftovers and Life Orb selection
2021-01-30 23:42:08 +04:00
Instruct
0685e88e4f
SSB4: Balance changes and Bugfixes, pt 2 (#7954) 2021-01-30 23:34:41 +04:00
Annika
3e4aa91e85
Megas for All: Remove debug prints 2021-01-29 15:14:47 -08:00
May Evans
5d506270b3
Gen 1: Move Graveler to NFE (#7959) 2021-01-28 19:24:04 -07:00
HematiteH2O
aad160c09c
Megas for All: Fix Hawlucha's ability + Data Mod (#7950) 2021-01-27 01:12:36 +04:00
The Immortal
48da8e92e8 Rename Gen-NEXT format
And link the old dev thread.
2021-01-26 01:22:02 +04:00
Guangcong Luo
2dfc1f2a72
Improve NEXT documentation 2021-01-25 13:13:42 -08:00
HematiteH2O
bc6915082e
[Megas for All] Slate 27 and Balance Changes (#7946) 2021-01-24 22:59:59 +04:00
Marty-D
bc144b8504 Descriptions: Remove duplicates 2021-01-24 13:26:04 -05:00
Marty-D
8947808628 Gen II: Fix damage calculation
Moves critical hit and item modifiers to the right places
2021-01-23 17:26:35 -05:00
The Immortal
b737c5a728 Gen 5: Random Battle improvements
- Various movepool adjustments
- Prevent Substitute + Circle Throw (Poliwrath)
- Improve Protect rejection
- Prevent Water Spout outside of Choice sets (Kyogre)
- Prevent Ice Punch with RestTalk (optimizes Throh and Muk)
- Make RestTalk Throh have Guts
- Make Gardevoir have Trace
- Fix Tinted Lens rejection (Venomoth)
- Improve Gem selection with Unburden
- Increase the bulk cut-off for Focus Sash
- Allow Sturdy leads to roll Custap Berry (Golem)
2021-01-23 22:28:52 +04:00
ACakeWearingAHat
eeab2bd44a
Gen 2 Random Battle Improvements (#7942)
* Gen 2 Random Battle Improvements

* tighten level scale
2021-01-23 11:47:04 +04:00
Instruct
18dea767a9
SSB4: Fix Urgent Bug and Descriptions (#7941) 2021-01-22 21:02:00 -05:00
Instruct
0d1c9fe098
SSB4: Bugfixes and Balance Patches (#7889) 2021-01-22 14:56:26 +04:00
The Immortal
7ab649a666 Gen 5: Random Battle updates
- Various movepool changes
- Prevent Trick Room + Haze Cofagrigus
- Prevent Extreme Speed + Roost Dragonite
- Prevent Head Smash + Roost Archeops
- Give Bouffalant Sap Sipper
- Give Rain Dance and Sunny Day Pokemon Life Orb
- Remove Rocky Helmet Ferrothorn
- Improve Leftovers, Life Orb, and Focus Sash selection
- Fix Unown's level
2021-01-21 18:32:13 +04:00
Leonard Craft III
90c2266789 Gen 1: Fix Bite's damage category 2021-01-19 21:23:42 -06:00
HematiteH2O
1befd7fa31
Megas for All: slate 26 + various balance changes (#7922) 2021-01-20 03:54:00 +04:00
The Immortal
1d941a90d3 Random Battle improvements 2021-01-19 06:01:35 +04:00
urkerab
d35ddfaf7b
Fix Brick Break against bypassed type immunity (#7916) 2021-01-18 12:13:17 -05:00
The Immortal
0bd3e854ff Gen 5: Fix Moody appearing in Randoms 2021-01-17 16:12:02 +04:00
urkerab
f0d3c85148
Fix Soundproof blocking self sound moves in Gen 8 (#7917) 2021-01-15 20:05:32 -06:00
HematiteH2O
7512cea154
[Megas for All] Ability fixes, buff, format info (#7909) 2021-01-16 01:20:31 +04:00
Dawnofares
e7f7260927
Show OHKO message if OHKO move breaks substitute (#7171) 2021-01-12 12:16:17 -05:00
The Immortal
ed23a6f07e Random Battle updates 2021-01-11 20:46:12 +04:00
The Immortal
3ae56399bd Label Pokemon banned from LC as NFE 2021-01-11 00:29:18 +04:00
The Immortal
28db0e0438 Gen 4: Update Random Battle 2021-01-10 21:02:52 +04:00
The Immortal
2bd9e757c4 Past gens: Random Battle improvements 2021-01-10 19:19:33 +04:00
HematiteH2O
dbc432987f
Megas for All: Fix Delibird's ability (#7898)
Delibird's ability should be able to change items on inactive
Pokémon.
2021-01-09 20:56:25 -08:00
HematiteH2O
111ab3788f
Add Megas For All and Double Trouble (#7893)
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-01-09 00:41:06 -08:00
May Evans
9d1b7b01bb
Gen 1: Fix Stadium Rest (#7888)
The current implementation of Rest on the Stadium sim fails to recalculate stats when Rest is used. This means that right now, the stat drops from Paralysis and Burn remain when you use it. This is inaccurate, and a massive problem considering Rest's increased relevance in the Stadium metagame.

Here is a video of how the interaction works in Stadium: https://www.youtube.com/watch?v=8o0uVj4bARo
Here is a replay of the bugged interaction on PS Main: https://replay.pokemonshowdown.com/gen1stadiumou-1132924324
Here is a replay of my fixed version of Rest working on the RBY server: https://replay.pokemonshowdown.com/rby-gen1stadiumou-1448

Here is my report on the issue from June of this year: https://www.smogon.com/forums/threads/stadium-format-is-now-available-on-ps.3526616/post-8503350

Thanks to Zarel for pointing out the function we use for recalculating stats here. I'll need this for when I get to (partially) fixing Haze.
2021-01-08 12:49:29 -08:00
Marty-D
a228f9eded
Gen II-III: Fix Conversion 2 2021-01-08 13:40:48 -05:00
urkerab
2c0bd53966
Grassy Terrain should heal before Leftovers (#7882) 2021-01-07 19:17:48 -05:00
Marty-D
bd6aaaff28
Gen VI-VII: Fix Toxic mechanic 2021-01-07 19:08:36 -05:00
urkerab
80d652d59b Sturdy should trigger before Focus Sash but after False Swipe 2021-01-05 16:58:03 +00:00
The Immortal
a3ce567ae1 Gen 6/7: Random Battle fixes 2021-01-04 20:59:47 +04:00
Marty-D
ca4fcabc39 Gens 5-6 OU: Put consistently low usage Pokemon in OU by technicality
https://www.smogon.com/forums/posts/8703468/
2021-01-03 13:41:06 -05:00
Kris Johnson
c09587d3e4 SSB: Re-add thewaffleman 2021-01-03 02:31:38 -07:00
Annika
bee946e822 SSB: Remove xJoelituh 2021-01-03 01:24:19 -08:00
Instruct
27f05678c0
SSB4: Balance changes and bugfixes (#7856) 2021-01-01 18:46:27 +04:00
LegoFigure11
cad1d25c4d
Add Gen 8 BSS Factory (#7843) 2020-12-31 02:09:29 +04:00
The Immortal
e0b3ade226 Gen 6/7: Random Battle improvements 2020-12-28 15:46:33 +04:00
Instruct
47a8a04aa9
SSB: Nerf Forever Winter Nights (#7841) 2020-12-27 19:47:20 +04:00
The Immortal
1307f8abca Zarude-Dada should be legal 2020-12-27 13:45:47 +04:00
Kris Johnson
f05e927ad1 Fix Teleport in Let's Go formats 2020-12-26 21:43:58 -07:00
Leonard Craft III
31d67dfb51 Dex: correct colors of Arceus, Calyrex, Zygarde, & Zarude 2020-12-26 22:09:38 -06:00
Leonard Craft III
8f590ef8b7 Dex: Feebas does not get Oblivious until Gen VI 2020-12-26 17:42:43 -06:00
Distrib
0cb0b65f66
SSB: Fix Tiki's image (#7840) 2020-12-26 14:58:35 -08:00
Instruct
b73efd84ab
SSB4: Bugfixes and balance changes (#7838) 2020-12-25 21:36:07 -07:00
fart
4acb83acc7
SSB4: Fix typo in Archas's description (#7834) 2020-12-25 04:06:49 -08:00
The Immortal
788d0f5bc0 Gen 6/7: Random Battle updates 2020-12-25 14:24:46 +04:00
Instruct
1f9954b374
SSB4: Bug & crashfixes (#7837) 2020-12-24 21:51:11 -05:00
Instruct
901c1d8573
SSB: Fix Winter Hail decrease amt. Add discussion thread to format. small QC changes. (#7833) 2020-12-24 13:24:18 -05:00
Kris Johnson
ec0ecb1264 SSB4: The Immortal's quote shouldn't be an ID 2020-12-24 10:14:36 -07:00
Instruct
5b441c2013
Super Staff Bros 4 (#7793)
Collaborative Project lead by @xInstruct with many contributors.

See the Special Thanks section of https://www.smogon.com/articles/super-staff-bros-4
2020-12-24 11:21:02 -05:00
The Immortal
fda0ee61f4 Gen 7/6: Implement Toxic accuracy mechanics 2020-12-22 15:50:05 +04:00
The Immortal
0d306b9930 Ban illegal Zygarde-10% sets 2020-12-20 18:18:29 +04:00
The Immortal
85761cca5b Gen 4 Random: Fix Mono-Electric teams 2020-12-19 14:56:13 +04:00
urkerab
0cbfeeba09
Fix Snatch in Gen 3 (#7812) 2020-12-15 19:25:59 -05:00
urkerab
74ae95a91c
Update accuracy calculation for latest Gen 7 research (#7806) 2020-12-15 18:37:24 -05:00
ACakeWearingAHat
4fda00e8ac
Update Doubles/Gen 2 Random Battle (#7808) 2020-12-15 11:52:47 +04:00
MacChaeger
7d6da41e34
Factory sets: Add more EV validation (#7790) 2020-12-12 10:48:20 +04:00
The Immortal
bce1267fae Improve randoms generator 2020-12-10 15:33:08 +04:00
Guangcong Luo
ea58695f0f Revert "CC/HC: Fix level balancing formula (#7773)"
This change was controversial. pyuk agreed to revert in preparation for
Random Battles Team Tour 4 as mentioned in:

https://www.smogon.com/forums/threads/revert-the-level-changes-to-hackmons-cup.3674551/

This reversion should not be interpreted as taking a side in whether
the level formula should be changed after the tour.

This reverts commit b6bf805a1a.
2020-12-09 23:18:41 +00:00
The Immortal
9965288bd2 Gen 5 Random: Fix Monotype Normal teams
Closes #7782
2020-12-09 22:12:30 +04:00
MacChaeger
fa4b7a19df
Fix Gen 7 UU Gligar Battle Factory EVs (#7780) 2020-12-08 20:33:59 +04:00
MacChaeger
b6bf805a1a
CC/HC: Fix level balancing formula (#7773) 2020-12-08 09:55:30 +04:00
Marty-D
e85c2ce250
Gen III-IV: Fix Reflect / Light Screen again 2020-12-07 10:12:50 -05:00
Leonard Craft III
12da66fb21
Correct Protean interactions & Gravity-blocked Status Z-Moves (#7729) 2020-11-30 16:30:51 -05:00
Kris Johnson
fe52ec2dab SSB: Remove a random duck 2020-11-28 02:45:20 -07:00
The Immortal
c13d5f3d4c Gen 6: Fix Stance Change 2020-11-26 16:47:41 +04:00
aviettran
f66569a242
Fix Symbiosis interaction with Eject Button (#7718) 2020-11-24 11:14:05 -05:00
Marty-D
5cbaefbf71
Gen III-IV: Air Lock / Cloud Nine have no message 2020-11-22 17:38:23 -05:00
Marty-D
8325b6300f
Gen III-IV: Fix Reflect / Light Screen in Doubles 2020-11-21 18:55:28 -05:00
Marty-D
1ed4d58b7e
Gen III: Fix Weather Ball
I realize this isn't actually correct, but at least it's less incorrect for now.
2020-11-20 18:24:29 -05:00
The Immortal
944d27ff55 Gen 2 Random: Prevent crashes with Monotype rule
Gen 2 has types with less than 6 Pokemon. These are fine to be rolled if someone plays this format via custom challenge and shouldn't crash.
2020-11-19 05:00:16 +04:00
The Immortal
6f44c6b4f8 Allow Same Type Clause in gens 3 & 2 Randoms 2020-11-19 02:41:48 +04:00
May Evans
9b8e34bc48
Gen 1: Announce Desync Clause Mod, fix Stadium Sleep Clause (#7702) 2020-11-16 23:52:39 -08:00
Kris Johnson
7877b95e67 Random Battle: Fix typo and remove redundant check 2020-11-16 22:40:48 -07:00
The Immortal
201842c421 Allow Same Type Clause to work in gen 5/4 Random 2020-11-15 16:47:03 +04:00
ACakeWearingAHat
1aafb31a6d
Update Gen 2/Gen 8 Doubles Random Battle (#7693) 2020-11-15 15:02:07 +04:00
May Evans
8c369ee995
Rename "Desync Clause" to "Desync Clause Mod" (#7694)
This was a minor mistake when I was writing this thing up. Since Desync Clause isn't something you replicate in RBY, it is more accurate to describe it as a Mod, in line with the ADV Switch thing.
2020-11-14 19:54:33 -08:00
Guangcong Luo
3336decb79 Implement Desync Clause Mod for Gen 1 Counter 2020-11-15 02:18:37 +00:00
urkerab
ec8cd25d59
Properly update Diamond Storm boosts for Gen 7 (#7638) 2020-11-12 10:27:18 -05:00
May Evans
370da46cb9
Fix Gen 1 Psywave mechanics (#7685) 2020-11-11 18:56:06 -08:00
Marty-D
2d0e06e497 Past Gens: Fix Fury Cutter 2020-11-09 18:10:05 -05:00
ACakeWearingAHat
155cf001f5
Gen 2 Random Battle improvements (#7651) 2020-11-06 17:54:28 +04:00
Guangcong Luo
9b5217ab70
Split up dex-data into more files (#7634)
* Split up dex-data over individual files

This commit introduces:
- `dex-abilities.ts`
- `dex-conditions.ts`
- `dex-formats.ts`
- `dex-items.ts`
- `dex-moves.ts`
- `dex-species.ts`

These files centralize definitions from `dex-data` and `global-types`.

* Inherit ItemData from Item etc

Previously, Condition inherited from ConditionData. Now, ConditionData
inherits from Condition. The advantage of the new approach is that now,
Condition and DataCondition no longer need to be separate types, and
there should be much less duplication of type definitions in general.

This has also been done for

- ItemData/Item/DataItem
- AbilityData/Ability/DataAbility
- FormatData/Format/DataFormat

Species and DataSpecies was already merged, but this also reverses
their inheritance (saving a lot of duplicated definitions in the
process!)

The only one left is MoveData, which is just super complicated and
will need its own commit.
2020-11-05 05:00:13 -08:00
The Immortal
2bc4a51a50 Random Battle improvements 2020-11-03 19:43:57 +04:00
Leonard Craft III
920af21aac
Abilities: Add isPermanent flag (#7614) 2020-11-03 10:31:11 -05:00
The Immortal
c15663508b Gen 2 Random: Fix typo 2020-11-02 02:40:34 +04:00
The Immortal
a36bda12e7 Gen 2 Random: Fix Rest + Sleep Talk 2020-11-02 02:29:01 +04:00
Kris Johnson
2db0a1fdb2 Mark other Genesect formes as unreleased in DLC1 2020-11-01 15:25:53 -07:00
ACakeWearingAHat
3037781e1d
Revamp Gen 2 Random Battle (#7610) 2020-11-02 01:13:11 +04:00
Kris Johnson
ba4c9d7a2a
Add November's OMotM, LCotM and RoA Spotlight (#7615) 2020-11-01 15:36:24 +04:00
Mia
d625976216
Rulesets: Fix crash in CCAPM2 (#7582) 2020-10-26 22:33:08 +04:00
urkerab
ff0ca077b6
Update Lunar Dance to Gen 8 mechanics (#7576) 2020-10-26 19:39:39 +04:00
May Evans
e102416793
Ban Japanese Gen 1 Events in Int Formats: Part 2 (#7581)
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2020-10-26 06:00:35 -07:00
The Immortal
f1d82ee1e0 Add gift Toxel event data 2020-10-26 06:15:51 +04:00
urkerab
b90f03b77e
Calculate natures with 16-bit truncation (#7540)
Also fixes Let's Go! which wanted to override these but couldn't.
2020-10-25 16:54:43 -07:00
The Immortal
a832a0f4c5 Add event Porygon 2020-10-25 01:27:45 +04:00
The Immortal
58e8e4203d Micle Berry is obtainable 2020-10-25 01:15:36 +04:00
Kris Johnson
a1058ac29c
Convert VGC 2020's mod to a pre-DLC2 mod (#7564) 2020-10-24 06:00:29 +04:00
The Immortal
5b83c5b15e Update learnsets
Added legendary dynamax events.
Removed multiple level up entries.
Copy corrections to VGC20 mod.
2020-10-24 05:47:51 +04:00
The Immortal
ada31d73b6 Soul Dew is available 2020-10-24 03:45:42 +04:00
The Immortal
24afc0f57e Show Genesect forme in Team Preview 2020-10-23 20:51:16 +04:00
The Immortal
8d7b72c606 Release the berries 2020-10-23 19:41:40 +04:00
The Immortal
b4f3c98630 Update obtainable items
Haven't seen confirmation of Soul Dew yet.
2020-10-23 18:52:15 +04:00
Kris Johnson
41ed00002f
Fix oversights from adding Crown Tundra DLC (#7559) 2020-10-23 07:45:12 +04:00
The Immortal
ed347748d5 Missed this file in 42e918a78 2020-10-23 06:50:14 +04:00
The Immortal
42e918a781 Add VGC 2020 mod 2020-10-23 06:47:00 +04:00
The Immortal
cf3405210f Gen 7: Random Battle updates 2020-10-21 22:15:12 +04:00
Guangcong Luo
a55d3cd530 Fix crashes from using moves with no target
Specifically, if you target your ally and your ally uses Ally Switch
(causing you to target yourself), certain moves (including Thunder,
Hurricane, and SSA) crash. This has been fixed.
2020-10-19 18:10:25 +01:00
Guangcong Luo
9d87616176
Add more style linting rules (#7537)
* Lint arrow-body-style

* Lint prefer-object-spread

Object spread is faster _and_ more readable.

This also fixes a few unnecessary object clones.

* Enable no-parameter-properties

This isn't currently used, but this makes clear that it shouldn't be.

* Refactor more Promises to async/await

* Remove unnecessary code from getDataMoveHTML etc

* Lint prefer-string-starts-ends-with

* Stop using no-undef

According to the typescript-eslint FAQ, this is redundant with
TypeScript, and they're not wrong. This will save us from needing to
specify globals in two different places which will be nice.
2020-10-19 02:42:28 -07:00
May Evans
0ee6e5f3ce
Fix Stadium Struggle vs Ghost-types (#7527)
Struggle should deal neutral damage to Ghost-types in Stad1 exclusively. I'm not exactly a "programmer", but if I can help fix this sim improve then that's good enough for me.

Source: https://www.smogon.com/forums/threads/stadium-format-is-now-available-on-ps.3526616/post-8517229

Thanks to Kris for helping me figure out what to do, it means a lot.
2020-10-19 00:59:34 -07:00
Kris Johnson
6699a57f4d
Fix spread move mechanics in ADV Doubles (#7523) 2020-10-16 11:22:48 -04:00
The Immortal
845b8f1458
Gen 1 Random: Give Magikarp Splash 2020-10-16 10:27:30 +04:00
May Evans
049ccaf368
Remove illegal moves from RBY Random Battles (#7528)
This removes Harden from Kakuna and Dragon Rage from Magikarp.

Harden is incompatible with Poison Sting and String Shot, as Kakuna doesn't learn it upon evolving like Metapod. 
https://www.smogon.com/forums/threads/random-battles.3526564/post-8577809

Magikarp only gets Dragon Rage via a Japanese event, and since international RBY mechanics are used, it's impossible for this to be used. 

As far as I know, these are the only incompatibilities.
2020-10-16 04:53:36 +04:00
The Immortal
84e0aeb8d1 Gen 7: Random Battle updates 2020-10-14 04:21:44 +04:00
Kris Johnson
4ea47cb308
Gen 4: Move Arceus to AG (#7511) 2020-10-12 03:01:50 +04:00
PartMan
52f67edd0d
Fix typo (#7491)
Obligatory Hacktoberfest typofix.
2020-10-07 23:36:16 -07:00
Kris Johnson
84f37bed2c
ViAbilities: Fix Vespiquen's moves 2020-10-03 20:26:36 -06:00
Kris Johnson
649a148d05 ViAbilities: Fix typos 2020-10-02 22:45:35 -06:00
Kris Johnson
9f0b6d64d0
Add new Pet Mods of the Season (#7455) 2020-10-02 21:08:29 +04:00
The Immortal
61b484ee4a Past gens random battle updates 2020-10-01 17:51:20 +04:00
Guangcong Luo
3d68248efa Update to latest eslint
We're skipping two major typescript-eslint versions, so there are a
bunch of changes here, including:

- it's catching a lot of things it didn't catch in the past, for
  reasons unclear to me

- no-unused-vars has to be explicitly disabled in global-types now

- a lot of `ts-ignore`s were never necessary and have been fixed

- Crashlogger can now handle being thrown things that aren't errors.
  This has never been a problem in the past, but to satisfy TypeScript
	we might as well not die in a fire on the off chance someone tries to
	`throw null` or something.
2020-09-29 15:28:08 -07:00
The Immortal
0d71ec82c3 Random Battle improvements 2020-09-22 11:56:21 +04:00
lotuspirate
7604acefd8
Update GSC NU Pokémon (#7405)
Changing tier for NU-viable Pokemon to NU from NFE/LC. Based loosely on GSC NU Viability Ranking.
2020-09-22 07:25:30 +04:00
The Immortal
f32b7c3b4f Gen 3: Random Battle fixes 2020-09-20 03:16:20 +04:00
urkerab
5d714fbb56
Replace @ts-ignore with type assertions or other less unsafe constructs (#7390) 2020-09-19 02:07:48 -07:00
ACakeWearingAHat
e3b9b95283
Random Battles updates (#7358) 2020-09-14 01:29:48 +04:00
Marty-D
35033203e8 CAP: Update Equilibra line's Abilities 2020-09-13 12:56:47 -04:00
urkerab
bcc6fddff5
Remove duplicate fail message from Encore (#7339) 2020-09-09 04:32:28 +04:00
Strahm, Jeffrey S.(S&T-Student)
188426490b Rename FormatsData to FormatData
(The name FormatsData is inconsistent with how we name other things;
especially since it's supposed to be data for a single format. It was
probably originally a typo. -Zarel)
2020-09-07 19:35:14 -07:00
urkerab
1bf873018c
Remove outdated getAwakeningValues function (#7331) 2020-09-07 17:00:53 -07:00
Instruct
c5b6622bc6
SSB: Remove Ashe (#7332) 2020-09-07 16:59:59 -07:00
Kris Johnson
43ec001996
CAP: Nerf Equilibra (#7328) 2020-09-06 22:15:05 -07:00
Guangcong Luo
ea8f52ce97
Move descriptions to data/text/ files (#7036)
This adds some new `data/text/` files, which are the new home for
item/move/ability descriptions, as well as in-game messages, in one
place for ease of translation.
2020-09-06 22:00:11 -07:00
Kris Johnson
8656d633ac
Format volatiles consistently (#7314) 2020-09-05 08:12:24 -07:00
Kris Johnson
c5d68ce16c
Megamax: Add newest updates (#7313)
https://www.smogon.com/forums/threads/megamax-pet-mod-of-the-season-ladder-tour-post-408.3658623/page-16#post-8571322
2020-09-04 21:44:42 -04:00
Kris Johnson
fb36d5275d
Remove Gen 7 Mix and Mega (#7298) 2020-09-03 01:15:59 +04:00
The Immortal
d25ec1cbca BF/CAP 1v1: Move sets loading outside constructor 2020-09-02 15:44:34 +04:00
The Immortal
78d85c6790 Gen 3: Fix Lightning Rod rating 2020-09-02 12:43:12 +04:00
Marty-D
edcbf6a483 Gens 4-6 OU: Put consistently low usage Pokemon in OU by technicality
https://www.smogon.com/forums/posts/8525878/
2020-08-29 10:41:55 -04:00
Kris Johnson
324ad0425a
Fix various GSC/ADV mechanics (#7247) 2020-08-22 01:29:41 -07:00
Kris Johnson
5e255012bc
Add a 'bst' property to Species (#7138) 2020-08-12 12:06:09 -07:00
Kris Johnson
03326bf0a0
Fix crash caused by missed instance of toID (#7193) 2020-08-10 00:18:19 -07:00
Mia
deeed6c789
Remove sim/ and data/'s globals (#7091) 2020-08-07 06:44:15 -07:00
Kris Johnson
5fb36bcc62
SSB: Remove Flare (#7170) 2020-08-07 12:36:12 +04:00
Leonard Craft III
9e82f05ebb
Gen 3-4: Fix Camouflage to change to Normal-type (#7130) 2020-08-06 14:54:57 -04:00
Kris Johnson
f96ec4fb05
Add strict types to tiers (#7135) 2020-08-06 00:41:42 -07:00
Kris Johnson
9952709171
Add some QoL improvements for Pet Mods (#7118) 2020-08-01 23:20:26 -07:00
The Immortal
1360f7d06d Random Battle updates 2020-08-01 17:31:16 +04:00
Kris Johnson
274e5ef267
Add August OM and RoA Spotlight ladders (#7111) 2020-08-01 16:46:04 +04:00
Leonard Craft III
95243cdb00
Don't leak target of two-turn charge moves (#7104) 2020-07-31 17:55:28 -07:00
Marty-D
7e33b3647a
Gen I: Fix Sludge poison chance 2020-07-31 20:07:18 -04:00
Annika
05a9f9a1e5
Minor code quality improvements based on LGTM (#7092) 2020-07-30 14:24:37 -07:00
Kris Johnson
70edfaa64c
Add support for more OMs (#7084) 2020-07-30 05:22:21 +04:00
Guangcong Luo
4d09f7acde Rename more instances of Effect to Condition 2020-07-26 11:26:23 -07:00
Guangcong Luo
2f805c93a2
Remove "Battle" prefix from data exports (#7039)
`BattlePokedex` is now `Pokedex`, `BattleItems` is now `Items`, etc.

I also renamed `Movedex` to `Moves` and `Statuses` to `Conditions`.

`TypeChart` isn't `Types` yet, because unlike the others, it's not
indexed by ID. That should probably be fixed one day.
2020-07-24 12:42:26 -07:00
The Immortal
e4e375b19b Random Battle updates 2020-07-24 17:41:05 +04:00
Kris Johnson
00b88b521d
Handle Gigantamaxing properly (#7001) 2020-07-23 13:27:42 -07:00
Marty-D
10e4ecdc84 Clean up event priorities 2020-07-21 10:43:12 -04:00
PartMan
356c06593b
Update Damp (#7025) 2020-07-20 09:58:49 -04:00
The Immortal
10bf212816 Battle Factory: Fix Raikou 2020-07-20 13:54:33 +04:00
Kris Johnson
d54985c70f
Optimons: Add new optimizations (#7022) 2020-07-20 13:36:28 +04:00
The Immortal
5e250e7e86 Gen 6: Update Random Battle 2020-07-19 18:43:14 +04:00
The Immortal
4d22a0f87e Move Magikarp's Revenge to NEXT mod 2020-07-19 15:00:40 +04:00
Marty-D
cad644bd84
Gen I: Add Counter short description 2020-07-17 14:00:33 -04:00
Guangcong Luo
e14c327f4e
Fix typo in SSB set 2020-07-16 05:14:07 -07:00
Kris Johnson
1a92b731a0
Pet Mods: Add new buffs/QoL improvements (#7002) 2020-07-13 21:09:12 -07:00
Kris Johnson
028797257c
Add SM Mix and Mega (#6997) 2020-07-13 15:03:35 +04:00
Slayer95
0afd86221b
Linked: Fix priority of linked moves (#6990)
Second move in a chain ignores Gen 8 dynamic turn-order mechanic.
2020-07-09 23:17:28 -07:00
Kris Johnson
255cd33635
Fix Megamax and NatDex BH (#6977) 2020-07-07 15:33:48 -07:00
Annika
2037764dd4
Porygon doesn't learn Defense Curl in Gen 2 (#6976) 2020-07-07 17:25:07 -04:00
Kris Johnson
4703cb76f3
Megamax: Add Hone Claws to Grimmsnarl (#6969)
https://www.smogon.com/forums/threads/megamax-pet-mod-of-the-season.3658623/page-11#post-8525900
2020-07-06 17:15:26 -07:00
Kris Johnson
947a055e47
Megamax: Add new nerfs (#6963)
https://www.smogon.com/forums/threads/megamax-pet-mod-of-the-season.3658623/page-11#post-8528007
2020-07-06 02:36:56 +04:00
The Immortal
b2387ad20d Gen 3: Random Battle updates 2020-07-05 19:34:41 +04:00
Kris Johnson
6e05586846
Add the other Pet Mod formats (#6960) 2020-07-04 21:10:41 -07:00
The Immortal
45329dd44c Gen 3: Random Battle updates 2020-07-03 14:30:12 +04:00
Kris Johnson
bf21d8fd0a
Add new Pet Mod of the Season (#6939) 2020-07-02 14:37:20 +04:00
Guangcong Luo
8fd572f1f6 Refactor BattleQueue to wrap Array
The old decision to make it extend Array was wrong, as clearly
illustrated by the problems with slice/splice.
2020-07-01 16:37:36 -07:00
Kris Johnson
f126b5aa6f
Fix typo (#6937) 2020-07-01 15:27:18 +04:00
Kris Johnson
7010e0286f
Add OMotM and RoA Spotlight for July 2020 (#6936) 2020-07-01 12:59:10 +04:00
urkerab
17e4cb49a4
Adjust fractional priority for latest research (#6928) 2020-06-29 12:09:10 -07:00
urkerab
f69ebf4f77
Fix Gen 3 Metal Coat's description (#6919) 2020-06-26 04:52:42 -07:00