Commit Graph

7374 Commits

Author SHA1 Message Date
Annika
00a533f4fe Random Battles: Fix minSourceGen bug 2021-05-06 23:05:37 -07:00
Annika
2b3741ec2f Random Battles: Support more Value Rules
Specifically, randomized formats will now support Max Team Size, Min Source Gen, Adjust Level, Adjust Level Down, and Force Monotype.

This fixes the issue with randomly-generated Multi Battle teams containing six Pokémon, instead of three as desired.
2021-05-06 22:45:08 -07:00
Karthik
367b4e7c2d
Implement Zacian/Zamazenta/Xerneas forme leak (#8261) 2021-05-06 19:24:59 -07:00
Guangcong Luo
36295dc27a
Simplify Team Preview events (#8274)
In format events:

`onFieldTeamPreview` has been renamed back to `onTeamPreview`. It's now
a custom event (like `onBegin`), rather than a field event.

Team Preview data has been entirely moved from `onBegin` into
`onTeamPreview`.

`onFieldStart` for formats/rules now happens after Team Preview, rather
than before. Use `onBegin` for things that happen before Team Preview.
2021-05-06 18:53:58 -07:00
Mia
34d6480837 Re-add Cancel Mod to Flat Rules 2021-05-06 09:28:56 -05:00
Guangcong Luo
55980d416c
Support value rules (#8267)
`teamLength`, `maxLevel`, `cupLevelLimit`, and `minSourceGen` no longer
exist as properties of `Format`. Instead, they're value rules that
become properties of `RuleTable`, and can be specified as custom rules
and inherited through rulesets like anything else.

See the PR for a full reckoning of changes:

https://github.com/smogon/pokemon-showdown/pull/8267
2021-05-06 01:16:16 -07:00
Karthik
b6d5fff24b
Unfix interaction between Gluttony and Neutralizing Gas ending (#8273)
Reverts #8250, but will keep gluttony test file and add more tests to it. This is being done because indirect sources of damages are not causing gluttony to trigger (such as belly drum).
2021-05-05 13:44:59 -04:00
ACakeWearingAHat
42cf635dca
Random Battles Updates (#8270) 2021-05-04 21:42:49 -07:00
Instruct
71c44a9f78
Fix build (#8271) 2021-05-04 21:07:16 -07:00
Mudkipman12
82006cf308
Ban Mega Latios and Thundurus-T in NatDex UU (#8269)
* Ban Mega Latios in NatDex UU

https://www.smogon.com/forums/threads/bug-reports-v4-read-original-post-before-posting.3663703/post-8845100
Fix to the current NatDex UU banlist.

* Update tags.ts

* Also Ban Thundurus-T

Turns out its also legal and isnt supposed to be
2021-05-04 21:11:16 -06:00
Leonard Craft III
771c60d4b9
Improve self-hit confusion damage (#8264) 2021-05-04 13:44:13 -04:00
Distrib
cc2fb4a596
Add No Switch rule (#8241) 2021-05-03 16:09:09 -07:00
Annika
d48c7a9ed6 Random Battles: Fix STAB enforcement 2021-05-03 15:16:57 -07:00
Marty-D
916c80b23d
Fix Mold Breaker interaction with Aura Break and Dark/Fairy Aura 2021-05-03 12:34:06 -04:00
Karthik
f453d37817
Fix interaction between Gluttony and Neutralizing Gas ending (#8250) 2021-05-03 11:25:47 -04:00
pyuk-bot
37df679e73
FFA: Update Court Change mechanics (#8259) 2021-05-03 11:23:03 -04:00
pacmanboss256
bb2d700883
Fix smart targeting with scripted moves (#8248) 2021-05-03 11:20:19 -04:00
Marty-D
a40f3388b6
Stop Ripen from reducing damage forever 2021-05-03 11:17:37 -04:00
Karthik
ee5928622f
Gen VII: Backport Psychic Terrain priority hint (#8262) 2021-05-02 19:36:52 -05:00
pacmanboss256
c1996a3949
Fix Me First's interaction with recharge moves (#8258) 2021-05-01 20:53:13 -07:00
Annika
99cb226a4b Random Battles update 2021-05-01 18:37:52 -07:00
Kris Johnson
45b515be6f Tags: Account for (DUber) 2021-05-01 12:43:42 -06:00
Kris Johnson
b77a4ad4e4 Tags: Fix bugs with parentheses 2021-05-01 12:41:57 -06:00
Kris Johnson
e445f05823
Tags: Don't use toID 2021-05-01 12:31:49 -06:00
pacmanboss256
9de563f839
Fix Adrenaline Orb's interaction with max stat stages (#8154) 2021-05-01 14:01:32 -04:00
Marty-D
e84230353b
Mistakes have been made 2021-05-01 13:59:05 -04:00
Marty-D
12c42a0701
Update tiers for May shift 2021-05-01 13:58:14 -04:00
Kris Johnson
612112834d Update OMotM and LCotM aliases 2021-05-01 01:59:26 -06: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
Instruct
a9d4374e59
Tag Mythical and Legendary pokemon (#8142) 2021-04-30 21:34:17 -07:00
Guangcong Luo
4d70b0a46a
Use data/tags for validator (#8218)
Previously, the validator had its own hardcoded tag system. This
removes the hardcoding and makes it so any pokemon tag in `tags.ts`
can be banned or unbanned.
2021-04-30 18:20:30 -07:00
Kris Johnson
ed8565a6db Free-For-All: Fix banlist and add alias 2021-04-30 11:18:46 -06:00
Marty-D
5b0391e91b
Fix build 2021-04-30 10:57:53 -04: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
The Immortal
44e66a6d81
CAP 1v1: Add Chromera (#8252) 2021-04-29 18:40:15 -06:00
Kris Johnson
7b81706c9e Dynamax: Remove Doubles OU hardcode 2021-04-28 14:04:31 -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
Kris Johnson
6d75966050 Move Glastrier to NU 2021-04-26 22:13:19 -06:00
Leonard Craft III
615ee48e25
Fix Shell Side Arm information leak (#8233) 2021-04-25 20:21:50 -07:00
Marty-D
3d9698953a
Fix other regressions from residual refactor 2021-04-25 18:32:04 -04:00
Marty-D
ed782ca268 Add CAP 29 2021-04-25 16:49:23 -04: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