Commit Graph

7793 Commits

Author SHA1 Message Date
Marty-D
675b393796 Gen II-IV: Hide Beat Up message
As per https://www.smogon.com/forums/posts/8992145/
2021-10-26 18:47:32 -04:00
Annika
ceda8e1beb Improve grammar for Bide's debug hint in Gen 1
Fixes #8497
2021-10-24 00:11:56 -07:00
Kris Johnson
74a7699bf2
Fix (DOU) legality 2021-10-23 12:56:12 -06:00
Leonard Craft III
02d66af2a1 Add Shiny Zacian / Zamazenta events 2021-10-22 17:01:34 -05:00
Marty-D
ea7c9efe66 NU: Unban Snorlax
https://www.smogon.com/forums/posts/9009585/
2021-10-20 10:15:23 -04:00
Kris Johnson
0611c6724c UU: Ban Latias (and unban for suspect test) 2021-10-17 15:38:44 -06:00
Kris Johnson
06ac92a917
Move Slowking-Galar to ND UUBL 2021-10-17 08:34:17 -06:00
sexy90gxebattlefactoryplayer
02173dce01
Battle Factory: Give Passimian Defiant (#8493) 2021-10-11 12:25:33 -07:00
Mia
f76bb79c74 Random-Teams: Fix Hackmons Cup move generation
Without this fix, the hackmons cup generator pushes DataMoves to the set.moves array, which crashes /showset. (it crashes because Teams.packName is called on an object, so it's truthy, but move.replace does not exist since it isn't a string).
2021-10-11 12:51:17 -05:00
Kris Johnson
fa741a6760 ORAS Monotype: Update legality 2021-10-11 09:48:54 -06:00
Annika
5d90cc66f4 Add [Gen 7] Monotype Battle Factory
Also removes Monotype teams from regular Battle Factory, as per https://www.smogon.com/forums/threads/monotype-in-gen-7-battle-factory-and-going-forward.3688757/#post-9001460
2021-10-10 20:27:17 -07:00
Marty-D
8ce7c82041 Revert "Fix Clangorous Soul's accuracy"
This reverts commit d34e21211f.
2021-10-10 22:20:59 -04:00
Kris Johnson
d34e21211f
Fix Clangorous Soul's accuracy 2021-10-10 20:01:11 -06:00
En Passant
21dfd5470d
Add "Sketch Gen 8 Moves" rule (#8431) 2021-10-09 19:05:05 -07:00
Annika
d3a2911c27 Random Battles: Use correct Dex APIs 2021-10-08 19:50:52 -07:00
Karthik
be5f737037
Add VGC 2013, VGC 2015, cleanup VGC 2017 mod (#8486) 2021-10-07 20:43:38 -04:00
Marty-D
60354bdfed Learnsets: Fix Nohface oversight 2021-10-06 19:24:57 -04:00
Kris Johnson
9afff7c222 Let Picked Team Size Work with Team Type Preview 2021-10-05 14:48:28 -06:00
Karthik
5b0ed34c60
Learnsets: Remove Covet from Toxicroak (#8487) 2021-10-03 21:21:48 -04:00
Kris Johnson
e8142cd780
Move Regidrago and Snorlax to NUBL
https://www.smogon.com/forums/threads/np-nu-stage-8-spooky-regidrago-and-snorlax-banned.3687023/post-8995653
2021-10-03 19:17:14 -06:00
Leonard Craft III
355cb7d2db Fix Max Guard to block Whirlwind
Thanks Zaggyo!
2021-10-02 23:33:17 -05:00
Leonard Craft III
fc910b46b1 LGPE: Correct weight mechanics 2021-10-02 22:37:17 -05:00
Annika
b626892dab Random Battles updates 2021-10-02 14:50:11 -07:00
Kris Johnson
0aa3877f3f Add October 2021 OMotM and RoA Spotlight 2021-10-01 14:12:53 -06:00
Marty-D
342dcc93c4
UU: Unban Latias 2021-10-01 13:40:44 -04:00
Marty-D
512a189e9b Update tiers for September shifts 2021-10-01 13:27:38 -04:00
Karthik
e12c372e54
Add mods for old VGC formats (#8474) 2021-09-30 10:55:45 -04:00
Karthik
91dd56e228
Learnsets: Fix sources for Substitute on Toxicroak (#8481) 2021-09-29 20:30:15 -04:00
Leonard Craft III
25910ed66d
Fix timing of freeze thaws (#8453) 2021-09-29 20:29:26 -04:00
Kris Johnson
c35cec08de
National Dex UU: Ban Jirachi 2021-09-25 21:30:43 -06:00
tofa
21182025ce
Fix Ice Face's interaction with Neutralizing Gas (#8479) 2021-09-23 20:50:03 -05:00
Marty-D
b22827b48e Add new CAP prevos 2021-09-23 11:27:30 -04:00
Marty-D
afa9523d4f Learnsets: Update every CAP 2021-09-22 17:07:56 -04:00
Kris Johnson
b4e1514d37
Random Battle: Fix crash with Force Monotype (#8476) 2021-09-20 08:58:22 -07:00
Kris Johnson
eb4b7568c8 Revert "Random Battle: Fix crash with Force Monotype"
This reverts commit 2e4439f940.
2021-09-20 02:59:25 -06:00
Kris Johnson
2e4439f940 Random Battle: Fix crash with Force Monotype 2021-09-20 02:41:08 -06:00
ACakeWearingAHat
fc1c3e17c5
Random Battles updates (#8473) 2021-09-19 15:50:11 -07:00
May Evans
3676ba36bf
Stadium OU: Move Poliwrath to StUU (#8475) 2021-09-19 10:52:42 -04:00
Karthik
7f14b41c6f
Gen I-II: Fix Mist & Haze behavior (#8472) 2021-09-19 10:29:48 -04:00
Karthik
d99779ba8a
Gen III-IV: Fix interaction between Liquid Ooze / Dream Eater (#8467) 2021-09-19 10:28:22 -04:00
Kris Johnson
a9cff320d8 Don't enforce capitalization on Force Monotype 2021-09-14 23:26:28 -06:00
Kris Johnson
c2f5ccc106 Update /battlerules 2021-09-14 23:24:46 -06:00
Kris Johnson
95df82f173
Move Durant to RUBL 2021-09-12 14:00:32 -06:00
Karthik
c0541c7747
Fix Powder revealing target of a failed fire move (#8468) 2021-09-11 16:57:08 -05:00
May Evans
992280b9a3
Gen 1: Implement Stadium tiers (#8460) 2021-09-08 19:20:58 -04:00
May Evans
af1eeae7e8
Gen 1: Fix minimum level encounters (#8456) 2021-09-08 18:18:02 -04:00
Kris Johnson
38b81c59b5
Move Arctozolt to UUBL
https://www.smogon.com/forums/threads/np-ss-uu-stage-9-1-king-of-the-clouds-thundurus-banned.3689570/page-2#post-8971134
2021-09-08 15:22:10 -06:00
Karthik
c1faaa4013
Add evo condition for Lurantis (#8459) 2021-09-07 19:39:44 -05:00
Annika
1fc5e3a787 Random Battles updates 2021-09-06 20:46:44 -07:00
Karthik
4f791ef852
Gen III-IV: Fix Uproar duration (#8450) 2021-09-05 12:46:11 -04:00
Kris Johnson
f77f310c3d
Move Thundurus to UUBL
https://www.smogon.com/forums/threads/ss-uu-suspect-process-stage-9-1-thundurus.3690367/page-2#post-8967377
2021-09-05 10:38:24 -06:00
Kris Johnson
96605d0589 LC: Ban Scraggy and Sticky Web 2021-09-02 21:27:47 -06:00
Karthik
d33bbfeba5
Use |-swapsideconditions| for Court Change (#8287) 2021-09-01 11:57:16 -04:00
Marty-D
1ecaf3ae61
Update tiers for September quick drops 2021-09-01 11:10:30 -04:00
Kris Johnson
ab48c10a00 Add September 2021 OMotM and RoA Spotlight 2021-08-31 22:36:10 -06:00
pacmanboss256
23b35498f6
Rename the "mystery" and "authentic" move flags (#8445)
* mystery -> allyanim
* authentic -> bypasssub
2021-08-30 23:07:50 -07:00
TheSupervillain
e710b8cf5c
Gen 2 Stadium: Fix crash (#8401) 2021-08-26 12:20:59 -04:00
Mia
c685b675d3 Aliases: Add full names for the main formats 2021-08-24 02:02:37 -05:00
pacmanboss256
f63ee3d3b7
Fix Water Shuriken interaction with Pokemon transformed into Ash-Greninja (#8444) 2021-08-23 21:43:57 -05:00
Kris Johnson
9f9c061ac5 Move Kartana to DUber 2021-08-23 16:34:00 -06:00
Karthik
91ff372e00
Include more forms in exclusive item lists (#8434) 2021-08-17 20:32:05 -05:00
Marty-D
5281f3bac3
Gen III: Fix Beat Up fix 2021-08-15 09:35:34 -04:00
Marty-D
2b6424f2e8
Gen II: Fix Beat Up category also 2021-08-14 16:25:17 -04:00
Marty-D
6e25dc78cd
Gen III: Fix Beat Up category 2021-08-14 15:24:08 -04:00
Leonard Craft III
29b069eeb3 Add VGC format threads 2021-08-11 19:11:06 -05:00
Leonard Craft III
3c7fc87b6b Simplify Eject Button Sky Drop interaction
Thanks urkerab!
2021-08-11 17:57:35 -05:00
pacmanboss256
c2a5848768
Prevent Sparkling Aria from curing burns if the user faints (#8381) 2021-08-10 11:02:12 -04:00
Jacob McLemore
65ca586d81
Fix Metronome (Item) and two-turn moves interaction (#8430) 2021-08-10 10:59:17 -04:00
Kris Johnson
21a297c45f
Move Mienshao to RUBL
https://www.smogon.com/forums/threads/ss-ru-suspect-process-stage-4-voting.3689046/page-2#post-8942222
2021-08-09 21:06:22 -06:00
Jacob McLemore
9979d3e66b
Fix Sky Drop + Eject Button interaction (#8429) 2021-08-09 19:03:52 -05:00
Leonard Craft III
822fea7795 Add Dynamax Cannon to Encore and Mimic failure lists 2021-08-07 14:30:41 -05:00
Marty-D
7d02028ebe Gen IV: Correct Light Ball modifier
A discovery 15 years late!
2021-08-07 15:10:28 -04:00
TheSupervillain
d8d2b80fa5
Refactor Berserk Gene to use useItem (#8423) 2021-08-06 18:21:58 -04:00
Kris Johnson
c3ad27289d Fix legality in STABmons and Alphabet Cup 2021-08-03 19:18:13 -06:00
May Evans
9e8b905779
Gen 1: Move Aerodactyl and Dewgong to UU (#8421)
The new RBY UU Viability Rankings were produced yesterday night, and these Pokemon moved up. The 2-revision policy for OU does not apply here. 

Update can be found here: 
https://www.smogon.com/forums/threads/rby-uu-viability-rankings.3647713/post-8935573
2021-08-03 10:33:46 -06:00
Annika
3aa9934e65 Random Battles updates 2021-08-02 14:20:38 -07:00
Annika
4d933a99a8 Random Battles: Balance levels based on July stats
Cake will be handling No Dmax when their LOA is over.
2021-08-02 13:46:34 -07:00
Marty-D
0c71038021
Descriptions: Add detail to Sandstorm shortDesc 2021-08-02 11:25:18 -04:00
Kris Johnson
c7aae915bb Update OMotM and LCotM aliases 2021-07-31 22:52:53 -06:00
Kris Johnson
cf7df087e6 Add August 2021 OMotM and RoA Spotlight 2021-07-31 22:46:25 -06:00
Karthik
b83e5088c2
Implement new STABmons policy (#8415)
* Implement new STABmons policy

* Use const

* Use push instead of concat

* Run generation loop for all the code

* Small changes

* Update data/rulesets.ts

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

* fix lint issues

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-07-31 21:13:37 -06:00
Marty-D
ea63437a0c Add new Torkoal event
Thanks, Anubis!
2021-07-31 11:04:59 -04:00
Marty-D
cd89eacfff
Fix Dry Skin behaviour when taking damage from allies 2021-07-31 09:58:51 -04:00
InAShellnut
8faa194521
Stadium 2: Fix Destiny Bond, Perish Song, and recoil (#8398)
Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

Bugs documented here: https://www.smogon.com/forums/threads/pok%C3%A9mon-stadium-2-simulators-bugs-glitches-and-other-mistakes.3685286/
2021-07-17 16:08:53 -04:00
Marty-D
c93111e81c
Gen II: Correct Unown formes
Thanks, pre!
2021-07-17 13:40:39 -04:00
Karthik
c32d9aecfe
Stadium 2: Send -unboost for stat drops (#8403) 2021-07-17 13:37:39 -04:00
Karthik
a36b74dbd1
Gen 3: Type boosting items should boost the attacking stat (#8402) 2021-07-17 13:36:56 -04:00
Marty-D
010dbd6e59
Fix Nintendo Cup 2000 Move Legality
Closes #8397
2021-07-14 20:32:56 -04:00
Marty-D
00fd9ec54a
Fix Splintered Stormshards/Steel Roller interaction with substitutes 2021-07-12 18:06:34 -04:00
Marty-D
fa325f5743 LC: Ban Vullaby
https://www.smogon.com/forums/posts/8915365/
2021-07-12 13:20:36 -04:00
Annika
c134195915
Use ts-node instead of Sucrase (#8369) 2021-07-09 19:59:22 -07:00
Marty-D
6a833db4f6 Gen III-IV: Fix Choice lock timing 2021-07-08 15:46:02 -04:00
Marty-D
410ef7ca70
Gen IV: Hide Mail on Team Preview
https://www.smogon.com/forums/threads/team-preview-information-before-gen-5.3687366/
2021-07-07 19:31:10 -04:00
Kris Johnson
598ac409e8 Rename Let's Go! mod to 'gen7letsgo' 2021-07-06 23:07:51 -06:00
Kris Johnson
eb2247a58d Change LCotM to Pure Hackmons 2021-07-06 23:04:07 -06:00
Guangcong Luo
b9affef2a4 Fix comment for Imposter 2021-07-03 15:19:54 -05:00
Marty-D
217979d2e5
Gen 5 OU: Drop Infernape into OU by technicality
https://www.smogon.com/forums/posts/8906068/
2021-07-03 14:24:43 -04:00
Annika
82d21aa33c Random Battles: Fix Venusaur bug in Gen 5 2021-07-02 19:49:43 -07:00
Annika
33e82d85d5 Random Battles update 2021-07-01 16:33:40 -07:00
Kris Johnson
ca37942f5c SSB: Fix infinite loop with Shared Power 2021-07-01 12:39:44 -06:00
Kris Johnson
b63f3d69ff Add July 2021 tier shifts 2021-07-01 11:01:52 -06:00
Kris Johnson
9e217d34c2 Add July 2021 OMotM, LCotM, and RoA Spotlight 2021-07-01 10:47:55 -06:00
Kris Johnson
876c86d236 Change type declaration formatting for Maps/Sets 2021-06-29 22:47:28 -06:00
Karthik
cbec7757dd
Gen 5: Blue Basculin should be able to have Reckless (#8377) 2021-06-29 10:30:14 -04:00
Marty-D
95fb91d465
PU: Ban Alolan Exeggutor
https://www.smogon.com/forums/posts/8898382/
2021-06-27 20:23:30 -04:00
Marty-D
965eaff862
Gen 7 UU: Ban Quagsire
https://www.smogon.com/forums/posts/8900000/
2021-06-27 18:22:35 -04:00
ACakeWearingAHat
92c932d35a
Random Battles updates (#8374) 2021-06-25 17:04:41 -07:00
Marty-D
43713804b9 Gen II-IV: Fix Destiny Bond handling during Pursuit
Thanks, xzern and SuperEpicAmpharos!

Also noticed the Pursuit switch accuracy check wasn't overridden in Gen 2 yet so I threw that in too.
2021-06-24 12:05:11 -04:00
Marty-D
a5929b3076 Gen III: Make Follow Me a slot condition
Thanks, xzern!
2021-06-23 11:32:43 -04:00
Distrib
9c7781480f
Ubers: Ban Zacian (#8366)
https://www.smogon.com/forums/posts/8887642/
2021-06-14 13:11:07 -04:00
Kris Johnson
be788410ec National Dex UU: Ban Mega Sableye 2021-06-12 22:57:22 -06:00
Kris Johnson
a1ec8acea4 CAP: Nerf Chromera and Buff Voodoom 2021-06-12 22:52:49 -06:00
Karthik
9e19fea383
Gen 5: Reveal Mail in Team Preview (#8363) 2021-06-12 18:02:36 -07:00
Guangcong Luo
8f87b6b84b Move packed team docs out of PROTOCOL.md
Packed team docs are now standardiszed in sim/TEAMS.md

(Also a bunch of smaller documentation improvements.)
2021-06-10 15:04:25 -07:00
Adam Tran
be2210f881
Fix Future Sight Life Orb interactions (#8357) 2021-06-08 11:48:10 -04:00
Kris Johnson
32de43c7ce SSB: Remove quadrophenic 2021-06-08 00:10:14 -06:00
Annika
6363a1854c Random Battles: Don't allow unreleased HAs 2021-06-07 18:45:22 -07:00
Marty-D
b830ceb818 Gen II, III: Implement Quick Claw properly 2021-06-07 12:26:50 -04:00
WeWuzNidokangz
0d96865c69
Fix crashes in Chimera 1v1 rule interactions (#8356) 2021-06-06 08:31:19 -07:00
Annika
c55658ce06 Random Battles: Fix 3-move Pokemon 2021-06-05 20:33:44 -07:00
Annika
d8988bb250 Random Battles: Fix double-Hidden Power bug 2021-06-05 12:24:08 -07:00
Instruct
da8c1580ea
Gen 5: Refactor to use unreleasedHidden (#8349) 2021-06-05 09:00:15 -07:00
Annika
8a6bb51c23 Random Battles update 2021-06-01 16:22:57 -07:00
Kris Johnson
c709a3e45a Add June 2021 tier changes 2021-06-01 13:08:49 -06:00
Kris Johnson
2aa015541c Fix OMotM/LCotM aliases 2021-06-01 12:16:11 -06:00
Kris Johnson
790993c5d2 Add June 2021 OMotM, LCotM, and RoA Spotlight 2021-06-01 02:16:11 -06:00
Kris Johnson
cf2af1fcdb
National Dex UU: Ban Hoopa-Unbound 2021-05-27 18:27:49 -06:00
Leonard Craft III
4543abfb9c Fix more regressions from residual factor 2021-05-27 17:38:59 -05:00
Annika
77acf7831d Random Battles: Properly level (OU) mons in Gen 1 2021-05-27 10:37:20 -07:00
Annika
c1c1f8976d Random Battles: Fix Hidden Power bug in Gen 6 2021-05-27 10:18:04 -07:00
Karthik
094623f18b
Sky Drop: Fix message when target is fainted (#8334) 2021-05-26 14:51:52 -07:00
Instruct
d50c77fb4d
SSB: Bugfixes and Cosmetic Updates (#8318) 2021-05-26 14:23:09 -07:00
May Evans
2d28dc4966
Gen 1: Move Victreebel and Lapras to OU by technicality (#8336) 2021-05-25 21:38:41 -07:00
Karthik
7988f15526
Gen 3: Always break the opponent's screens with Brick Break (#8325) 2021-05-25 15:39:40 -04:00
pacmanboss256
91f86530c5
Fix Gen 3 Weather Ball and Gen 4 Trick (#8314) 2021-05-24 15:07:37 -04:00
pacmanboss256
647ebd5fc6
Fix Counter redirecting Encored self-target moves (#8300) 2021-05-23 22:55:21 -07:00
Annika
a77db612c8 Random Battles updates 2021-05-23 16:11:54 -07:00
Guangcong Luo
9c98ae5c87 Rules: Split "EV Limit" out from "Obtainable Misc"
"EV Limit = 510" is now its own rule which can be changed separately
from the rest of Obtainable Misc.

The rest of Obtainable Misc doesn't seem useful to break up, so I
haven't bothered.
2021-05-23 15:14:00 -07:00
Leonard Craft III
606576f453
Add various mechanics tests (#8313)
* Standardize Photon Geyser tests
* Add Gulp Missile tests
* Add Berserk Dragon Darts test
* Add Ring Target tests
* Add and improve Metronome tests
* Add Sparkling Aria tests
* Add additional Fling tests
* Standardize Mummy tests
* Add Rollout submove targeting test
* Improve Flower Veil tests
* Add Acupressure tests
* Improve Sky Drop tests
* Add Future Sight tests
* Improve Wandering Spirit tests
* Improve Rapid Spin tests
* Add Rocky Helmet victory test
* Improve Focus Punch tests
* Add a skipped Stomping Tantrum test
2021-05-20 08:43:08 -04:00
Leonard Craft III
d946308900
Fix the order of many end-turn resolution effects (#8307)
Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>
2021-05-17 11:53:52 -04:00
Leonard Craft III
50054ef5ae
Fix Struggle to be unaffected by Disable (#8315) 2021-05-17 07:18:26 -07:00
Kris Johnson
961842b869
Gen 6: Move Conkeldurr to UUBL 2021-05-16 12:42:36 -06:00
Leonard Craft III
ddd5d6ac15 Improve logic for multiple Neutralizing Gas check 2021-05-15 11:52:46 -05:00
LegoFigure11
94016c5ac5
BSS Factory: Fix Snorlax HP numbers (#8299)
https://www.smogon.com/forums/threads/3675374/#post-8853841 pointed out that we have bad HP numbers for Glutton Snorlax, so this fixes them.
2021-05-15 10:06:44 -06:00
Leonard Craft III
a2513173f3
Fix Neutralizing Gas ending if another is active (#8305) 2021-05-15 08:44:33 -07:00
Marty-D
b0509ce39f Check for a winner after future moves 2021-05-15 10:31:30 -04:00
Leonard Craft III
4f7f943282 Fix more regressions from residual factor 2021-05-14 23:10:52 -05:00
pacmanboss256
4186ef5f4f
Refactor Mold Breaker effect (#8291) 2021-05-14 08:32:41 -04:00
Leonard Craft III
1ae02fc07d
Descriptions: Improve Diamond Storm (#8302) 2021-05-14 08:30:31 -04:00
Guangcong Luo
509d0abad4 Refactor out some Object.keys invocations
If you need values, you should be using `Object.values` or
`Object.entries` directly.
2021-05-13 23:02:04 -07:00
Karthik
126430168c
Support separate Shell Side Arm physical/special anims (#8301) 2021-05-13 20:22:00 -07:00
Annika
08c60c7caa Random Battles: Fix 5-Pokémon Gen 1 teams 2021-05-12 18:57:45 -07:00
Annika
d55b9d559f Randbats: Prevent Gen 1 crash with Force Monotype 2021-05-12 14:44:39 -07:00
Annika
2fef5e9ca6 Random Battles: Debug Gen 1 team size 2021-05-12 14:42:19 -07:00
Annika
e2d468b6b1 Random Battles: Bugfixes 2021-05-12 14:42:19 -07:00
Kris Johnson
77b7120b06
Update to Sw/Sh 1.3.2 mechanics (#8296) 2021-05-12 14:14:58 -04:00
pyuk-bot
b17171a2cb
Store originally targeted slot for two-turn moves (#8280) 2021-05-12 08:51:58 -04:00
Annika
62571c4907
Validator: Improve Gen 1 level validation (#8294) 2021-05-12 02:59:12 -07:00
Guangcong Luo
7e965b41a7 Revert timing for adding rules to field in #8274
It turns out rules need to be added before sides are initialized,
so that they can hook `ModifySpecies` during side initialization.

The proper way to fix this is pretty complex so this is just a hack.
2021-05-11 23:02:01 -07:00
Annika
071e21da5c
Random Battles: Refactor to use Sets and Multisets more (#8292) 2021-05-11 09:16:28 -07:00
Mia
f4c6e8f690 Formats: Fix undefined toID call 2021-05-11 08:23:40 -05:00
Mia
2a8f69ab0a Randbats: Properly throw on invalid types 2021-05-10 11:55:20 -05:00
Annika
0b438673a6 Fix BSS Factory item generation 2021-05-09 13:00:36 -07:00
Annika
15e6f9406f
Random Battles: Remove Normalium Z Porygon-Z 2021-05-08 18:13:19 -07:00
pyuk-bot
a76052af54
Scale team limits in Random Battles to maxTeamSize (#8281) 2021-05-07 23:52:20 -07:00
Annika
5d177a8384 Random Battles: Remove wrongly-implemented rules 2021-05-07 10:19:45 -07:00
Guangcong Luo
638c1e3ae8 Add "Max Move Count" value rule
Also stop enforcing 4 moves limit and 6 pokemon limit in `-Nonstandard`,
for the same reason we stopped enforcing the level 100 limit; any format
that explicitly wants it higher should automatically override it.
2021-05-07 02:16:24 -07:00
Guangcong Luo
0adb8d1b00 Add Unova Dex rules 2021-05-07 00:37:22 -07:00
Annika
0b4c904331 Random Battles: Fix crash 2021-05-06 23:27:48 -07:00
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
Kris Johnson
5cd1d060ab Rulesets: Add Nintendo Cup 2000 Move Legality 2021-04-24 01:11:45 -06: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
Guangcong Luo
9ad9957d9d Improve tags
(The tier filters previously weren't matching e.g. "(UU)" as well as
"UU")
2021-04-21 23:57:02 -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
Distrib
b7d1e2c058
PU: Ban Clawitzer, Kingler and Omastar (#8213) 2021-04-18 18:30:09 -07:00
Karthik
1d9b713951
Add fail text for Corrosive Gas (#8209) 2021-04-17 20:19:01 -05:00
Leonard Craft III
3c7b7b96f4
Add Plasma Fists hint (#8206) 2021-04-17 15:04:17 -07:00
Karthik
adb164ad51
Fix Magician activation timing (#8202)
Use onAfterMoveSecondarySelf so Weakness Policy happens first
Fixes #8104
2021-04-17 12:26:29 -04:00
Kris Johnson
d0fd8ac8e0 Fix build 2021-04-16 21:47:38 -06:00
Guangcong Luo
95f4755f3f Simplify BST in Tags 2021-04-16 15:05:27 -07:00
Guangcong Luo
29c5acbaa0 Add numeric columns to data/tags.ts
The file name doesn't fit quite as well as before. :(
2021-04-16 14:52:42 -07:00
Leonard Craft III
489b49c1e4
Implement Series 9 VGC 2021 (#8203)
* Implement Series 9 VGC 2021

* Update aliases

* Keep Series 8 as VGC 2021 to preserve ladder

* Kris said this was ok
2021-04-15 19:20:56 -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
ACakeWearingAHat
7fd6baa4c3
Random Battles: Fix Toxtricity (#8196) 2021-04-13 16:11:31 -07: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
Kris Johnson
c3b46362d6 Move Entei and Glastrier to NUBL 2021-04-11 00:25:05 -06:00
ACakeWearingAHat
5493420d9c
Random Battles Improvements (#8192) 2021-04-10 17:46:41 -07:00
Leonard Craft III
d858bbda30
Validator: Disallow duplicate moves (#8191) 2021-04-09 20:59:20 -07: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
Annika
eb864962e2 Random Battles: Prevent Gmax regional Pikachus 2021-04-08 12:26:53 -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
pyuk-bot
636ebdd7f8
FFA: Apply GMax side conditions to all foes' sides (#8184)
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2021-04-06 20:55:43 -07:00
Kris Johnson
418b5dcbe8 Rename Gen 7 Mix and Mega's mod 2021-04-06 17:43:59 -06:00
Karthik
3b1d3844dd
Negate Unburden while Neutralizing Gas is active (#8182) 2021-04-06 12:13:05 -04:00
Marty-D
11080f479d
Descriptions: Update Mold Breaker and friends 2021-04-05 18:00:39 -04:00
Marty-D
6c07717703 Remove Spikemuth Cup 2021-04-05 13:25:47 -04:00
pyuk-bot
ab722b5b73
Fix repeat mega evolution in Megas For All (#8177) 2021-04-04 18:29:14 -04:00
Distrib
d781a823b2
LC: Ban Woobat (#8176)
* LC: Ban Woobat

PR for https://www.smogon.com/forums/threads/ss-lc-suspect-process-woobat-voting.3681457/post-8808892

* Update formats.ts

* Update formats.ts
2021-04-04 12:18:16 -06:00
Guangcong Luo
77d231eee5 Fix Disguise vs Steelsurge 2021-04-03 18:30:19 -07:00
Kris Johnson
da14d64e3a
Move Virizion to PUBL
https://www.smogon.com/forums/threads/pu-general-rules-tiering-and-announcements-thread.3660650/page-2#post-8807321
2021-04-03 03:45:13 -06:00
pyuk-bot
2a63878645
Random FFA Battle: Don't give anything Ally Switch (#8167) 2021-04-03 01:50:18 -07:00
Kris Johnson
10eb793c92
Pokebilities: Fix various ability interactions 2021-04-03 01:40:35 -06:00
Guangcong Luo
d4ad847e87 Make "Dynamax Energy" message smaller 2021-04-02 23:00:30 -07:00
urkerab
d4e6fb227c
Fix Aromatherapy failing if the right slot has a Substitute (#8151) 2021-04-02 17:35:04 -04:00
Karthik
19ae4f693f
Check for Berserk before eating Berries (#8147) 2021-04-02 17:30:34 -04:00
Annika
e481b581ea Adjust levels for [Gen 8] Random Battle 2021-04-02 14:07:47 -07: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
41889de15e NU: Ban Snow Warning, Unban Arctozolt/Aurora Veil 2021-04-01 22:48:36 -06:00
ACakeWearingAHat
aa11792474
Random Doubles Battle: Remove Venusaur's set (#8159) 2021-04-01 20:32:12 -07:00
Kris Johnson
ebf13740f4 Shared Power: Fix Trace and Mirror Armor 2021-04-01 19:42:32 -06:00
Annika
23cc9519bb Readd accidentally removed line
I don't know why this got removed or why I didn't notice
2021-04-01 17:53:53 -07:00
Annika
d38d81cf68 Random Battles: Remove April Fools' joke 2021-04-01 17:46:59 -07:00
Annika
124b396e54 Random Battle: Adjust levels for No Dmax + Doubles 2021-04-01 17:46:59 -07:00
Kris Johnson
876b09b010 OMotM/LCotM: Update bans/fix bugs 2021-04-01 17:25:41 -06:00
Kris Johnson
ab15c38cce
Move Alakazam and Latios to UUBL
https://www.smogon.com/forums/threads/np-ss-uu-stage-9-call-me-by-your-name.3681331/#post-8805629
2021-04-01 16:43:19 -06:00
Marty-D
e4dd3ce940 Update tiers for April shift 2021-04-01 17:30:37 -04:00
Mia
2a1962899a Aliases: Update OMOTM and LCOTM aliases 2021-04-01 14:15:12 -05: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
ACakeWearingAHat
489919fefd
Random Battles No Dmax: Adjust CAP levels (#8157) 2021-04-01 00:52:53 -04:00
ACakeWearingAHat
f8ca24badf
Random Battles: Improve joke sets (#8155)
* Rands AFD patches

some minor hardcodes to account for abilities and items

* Update data/random-teams.ts

* Update data/random-teams.ts

* Update data/random-teams.ts

Co-authored-by: Annika <annika0uwu@gmail.com>
2021-03-31 21:12:40 -07:00
Annika
d5b11819bd Random Battles: Fix tests
I should get in the habit of running full-test locally more often...
2021-03-31 20:58:48 -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
Annika
e2d5438023 Random Battles: Add April Fools' joke 2021-03-31 20:16:05 -07:00
Karthik
258269348c
Allow Berries to be used between Unnerve switching to Unnerve (#8145) 2021-03-31 10:07:36 -04: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
ACakeWearingAHat
0c91d7da4d
Random Battles: Allow Curse Registeel (#8146) 2021-03-29 20:16:40 -07: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
Leonard Craft III
d6e7df506f Fix Eruption Heatran event
https://www.smogon.com/forums/threads/bug-reports-v4-read-original-post-before-posting.3663703/post-8798521
2021-03-28 21:06:51 -05: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
Leonard Craft III
b707a4ad97 Correct Shed Skin odds 2021-03-27 22:44:28 -05:00
Annika
24c4ed134c Random Battles: Revert SpeedSetup changes
Requested by the Random Battles community.

I do not approve of this design in the slightest.
2021-03-27 18:37:11 -07:00
Annika
a115f1d415 Random Battles: Make speedsetup 2-stage boosts 2021-03-27 16:03:18 -07:00
Annika
2e8b32333d Random Battles: Fix Necrozma frequency 2021-03-26 17:03:20 -07:00
Annika
9e7074572e Random Battles update 2021-03-26 15:45:59 -07:00
Marty-D
afb15b82f0 Validator: Fix blank mismatched forme message 2021-03-26 16:29:34 -04:00