Commit Graph

23714 Commits

Author SHA1 Message Date
Guangcong Luo
d63f5f610d Sync hosts/proxies 2021-04-08 14:48:03 -04:00
Guangcong Luo
6658d65c40 Properly fix Keldeo-R 2021-04-08 14:48:03 -04:00
Mia
e548579e9b
IPTools: Automatically add Tor IPs to the proxy list (#8188) 2021-04-08 11:34:09 -07:00
Guangcong Luo
cf5b325b62 Fix /formathelp 2021-04-08 13:34:36 -04:00
Mia
1db638815e Moderation: Allow locking hostfiltered users 2021-04-08 11:52:48 -05:00
Guangcong Luo
1ae9f90393 Possibly fix a format corruption issue 2021-04-08 08:07:30 -07:00
Mia
6605e1e1b7 Autoresponder: Correctly format newlines in FAQs and improve style 2021-04-08 10:04:17 -05:00
Guangcong Luo
73353990ad Add some safety for formats
A weird bug with OU lacking Team Preview might be caused by this.
2021-04-08 07:23:15 -07:00
Guangcong Luo
fc2c43e1ea Fix crash when forfeiting before battle start 2021-04-08 07:13:31 -07:00
Guangcong Luo
5233559183 Refactor Dex types 2021-04-08 07:08:56 -07:00
Guangcong Luo
34880b65e1 Sim: Revert AfterBoost event change
It turns out I accidentally had whole word matching turned on when
I searched the codebase for `AfterBoost`, so I missed all the
`onAfterBoost` uses. :[
2021-04-08 06:22:31 -07:00
Guangcong Luo
2a5c80e707 Sim: Only run AfterBoost when boosts succeed 2021-04-08 06:08:43 -07:00
Guangcong Luo
05e28925a7 Fix Mega Rayquaza and Keldeo-R validation 2021-04-08 06:02:43 -07:00
Guangcong Luo
53924a9ca5 Fix Pokébilities and Shared Power
This fixes `pokemon.addVolatile('ability:intimidate')` to be able to
add abilities as volatile statuses, for use in OMs that want to have
more than one ability at a time.

Items are now also supported, for instance as
`pokemon.addVolatile('item:choiceband')`.

As usual, abilities and items are not written with this functionality
in mind, so it's the OM's job to fix any crashes caused by
abilities/items not expecting to be used as volatiles.
2021-04-08 05:38:36 -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
Quinton Lee
697cd715bb
Add feedback to /sendhtmlpage and /highlighthtmlpage (#8187) 2021-04-07 22:27:39 -07:00
Mia
becb403d17 Chat: Add <youtube> to the list of autoclose HTML tags 2021-04-07 18:37:54 -05:00
May Evans
1365091eed
Rename OU (Tradeback) to Tradebacks OU (#8185) 2021-04-07 11:27:27 -07:00
Mia
9849c63fef
Room-Battle: Fix timer interaction with choice-blocking moves (#8186)
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2021-04-07 11:26:55 -07:00
Guangcong Luo
4f32736bdd Clean mods/ and chat-plugins/ when building
Previously, if you deleted a file from `data/mods/`, it wouldn't also
get deleted from `.data-dist/mods/`. This fixes that, and the
corresponding issue in `server/chat-plugins/`.

For reasons of performance and/or laziness, I've chosen to only clean
those two directories, not all built directories.
2021-04-07 01:33:10 -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
Distrib
dbb7f7b771
Fix translation for /faq autoconfirmed (#8183) 2021-04-06 16:07:24 -07:00
Annika
6806b8c3ac Chat monitor: Weeklock for slur evasion 2021-04-06 12:42:42 -07:00
Mia
7ea8cfa668 TOTD: Fix keys[0] not being the nom 2021-04-06 11:58:02 -05:00
Mia
708d81efde OTD: Fix double timestamp display 2021-04-06 11:50:28 -05:00
Karthik
3b1d3844dd
Negate Unburden while Neutralizing Gas is active (#8182) 2021-04-06 12:13:05 -04:00
Leonard Craft III
54ebad4d2f Improve Thousand Arrows tests 2021-04-05 22:49:32 -05:00
Marty-D
11080f479d
Descriptions: Update Mold Breaker and friends 2021-04-05 18:00:39 -04:00
Mia
4ec9db3489 TOTD: Fix timestamp display and ensure timestamp always exists 2021-04-05 16:01:48 -05:00
Mia
4e6dce1395 Moderation: Properly allow extending namelocks 2021-04-05 14:21:27 -05:00
Marty-D
6c07717703 Remove Spikemuth Cup 2021-04-05 13:25:47 -04:00
Mia
c506b2118c Hangman: Fix caps sensitivity in /hangman untag 2021-04-05 11:25:28 -05:00
pyuk-bot
ab722b5b73
Fix repeat mega evolution in Megas For All (#8177) 2021-04-04 18:29:14 -04:00
Mia
783d581908 /invitebattle: Update form if target is blocking challenges 2021-04-04 14:19:55 -05:00
Kris Johnson
68d181146e
Godly Gift: Clarify description 2021-04-04 12:31:14 -06: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
pyuk-bot
912a2c6677
Send ally request data in multi battles (#8175) 2021-04-03 23:02:44 -07:00
Mia
07bd07af4d Core: Properly apply /bch to /invitebattle 2021-04-03 21:26:43 -05:00
Guangcong Luo
7072a87010 Fix canceling in 4-player games 2021-04-03 19:14:09 -07:00
Guangcong Luo
77d231eee5 Fix Disguise vs Steelsurge 2021-04-03 18:30:19 -07:00
Annika
d8926871fc Add more Spanish translations
Credit to Dorron!
2021-04-03 18:28:21 -07:00
Annika
f43795880c Repeats: Ensure repeat IDs aren't empty strings 2021-04-03 18:04:52 -07:00
Leonard Craft III
897a798db6 Expand G-Max Steelsurge test 2021-04-03 19:02:50 -05:00
VineST
8af7923d58
Pokebilities: update banlist (#8174)
* Pokébilities: update banlist

https://www.smogon.com/forums/threads/pok%C3%A9bilities.3679692/post-8808189

* proper spacing

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-04-03 17:32:35 -06:00
pyuk-bot
817addfd62
Fix Follow Me, etc. in FFA (#8173) 2021-04-03 15:16:27 -07:00
HoeenHero
47d8bd4d82
Fix hazards not applying if the target side is fainted (#8171)
Co-authored-by: pyuk-bot <msaimrkon@gmail.com>
2021-04-03 15:15:13 -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
2b9bb1c4c4
Multi Battle: Run residuals on p3 and p4 (#8170) 2021-04-03 02:44:38 -07:00
pyuk-bot
2a63878645
Random FFA Battle: Don't give anything Ally Switch (#8167) 2021-04-03 01:50:18 -07:00