Commit Graph

14640 Commits

Author SHA1 Message Date
HoeenHero
fa474d6b85 Dont show a disqualification message when tour banning
fixes 125259acc4
2018-01-31 16:08:19 +00:00
HoeenHero
125259acc4 Fix crash when disqualifying a tour banned user 2018-01-31 15:45:04 +00:00
The Immortal
97c25970fe
ORAS Monotype: Ban Hoopa-Unbound 2018-01-31 14:01:37 +04:00
urkerab
ef005d3076 Fix Protective Pads interaction with Spectral Thief (#4389)
Specifically, stat boosts gained are from the user, not the target.
2018-01-30 14:46:11 -05:00
Guangcong Luo
c4d3b1f80f Improve move validation phrasing 2018-01-30 11:07:10 -06:00
Lionyx
981427ab6c Fix Mimikyu-Busted-Totem's tiering (#4387)
I'm not sure if it inherits its tiering from Mimikyu-Busted or Mimikyu-Totem, but the fact that either already inherit their tiering from Mimikyu seems to have made Mimikyu-Busted-Totem's tiering to "undefined" (http://www.smogon.com/forums/threads/bug-reports-v2-0-read-op-before-posting.3469932/post-7669587).
2018-01-30 11:06:58 -06:00
CheeseMuffin
7f82b76ea6 Dexsearch: Add LC Uber to help (#4385) 2018-01-30 10:09:10 -06:00
HoeenHero
dda4bcc025 Fix crash in [Gen 7] Inheritance (#4386) 2018-01-30 10:08:54 -06:00
Charlie Kobayashi
1ef018c93b COMMANDS.md: Reflect modlog changes (#4322) 2018-01-30 09:38:03 -06:00
Guangcong Luo
e456303513 Make tour generators case-insensitive
Fixes #4382
2018-01-30 07:53:18 -06:00
Guangcong Luo
ba4e9870d4 Fix getChoice
It now returns a valid choice string for Team Preview choices.
2018-01-29 20:59:52 -06:00
Guangcong Luo
8f0fc8c4bf Add /addplayer reminder to /importbattlelog 2018-01-29 20:53:01 -06:00
Guangcong Luo
ef06ebe555 More fixes to /exportinputlog 2018-01-29 21:23:08 -05:00
Guangcong Luo
4e7215ebff Check eval permission for /importinputlog 2018-01-29 19:49:46 -06:00
Guangcong Luo
80c7b57d54 Allow any user to extract input logs, with player permission 2018-01-29 19:43:19 -06:00
Marty-D
ad27420a1e Update Life Orb's interaction with OHKO moves 2018-01-29 19:46:11 -05:00
Guangcong Luo
c23aeab781 Disable disconnection timer for challenge battles 2018-01-29 18:28:08 -06:00
Guangcong Luo
71750779b7 Fix joining battles mid-game
This should take care of all the known bugs involving swapping out
players mid-battle.
2018-01-29 13:16:44 -06:00
Guangcong Luo
331b99ebc4 Fix /addplayer 2018-01-29 14:03:25 -05:00
Guangcong Luo
2b7d6dbcc5 Fix adding players to battles
This was an obscure feature that's behaved weirdly for a while. This
change should make it workable.
2018-01-29 12:28:35 -06:00
Guangcong Luo
c62951fc0d Support /importinputlog and /exportinputlog 2018-01-29 11:25:10 -06:00
KrisXV
ac8c8e41a6 Fix Genesect and Clefairy's doubles tiers (#4384) 2018-01-29 07:22:12 -06:00
Guangcong Luo
caff4addd5 Fix Travis build
This is the SECOND time we've gotten this problem, where I think a
TypeScript error is actually an execution error.

This was introduced at some point where the `// @ts-ignore` was
accidentally deleted.
2018-01-28 22:10:04 -06:00
Guangcong Luo
b58e08e215 Improve Sim documentation 2018-01-28 22:04:41 -06:00
Guangcong Luo
4af43bd698 Document choice specifications 2018-01-28 21:56:37 -06:00
Guangcong Luo
a4f914c4a0 Fix commandline documentation for ./pokemon-showdown 2018-01-28 21:26:59 -06:00
Guangcong Luo
1c62891008 Document new Sim API 2018-01-28 21:23:06 -06:00
Guangcong Luo
4c0699abc6 Implement inputLog
A battle's inputLog is now stored separately from the output log. It's
not an exact log of inputs, but rather just a collection of the inputs
that resulted in the battle: a default choice expands to the choice
that was actually used, and the starting seed is logged whether or not
it was explicitly passed into the battle stream.

Fixes #4348

Fixes #3201
2018-01-28 21:23:06 -06:00
Guangcong Luo
1531b662c6 Refactor battle stream system
This contains a lot of minor refactors, but the main thing that's going
on here is that battle stream writes have been streamlined to be a lot
easier for others to use.

We even support:

    ./pokemon-showdown simulate-battle

which provides a stdio interface for anyone using any programming
language to simulate a battle.
2018-01-28 21:06:49 -06:00
Guangcong Luo
a0da191024 Improve ./pokemon-showdown commands
./pokemon-showdown help

will now display all the possible ways to use PS on the command-line,
of which there are several new ones:

    ./pokemon-showdown validate-team
    ./pokemon-showdown unpack-team
    ./pokemon-showdown pack-team
2018-01-28 21:06:49 -06:00
Guangcong Luo
b9aba16b52 BattleStream: Refactor message types
The previous complement of way too many message types:

- update, winupdate, sideupdate, request, score, log

are now only:

- update, sideupdate, end

`score` was removed in the previous commit, and this commit adds a new
message type `end`. `end` replaces the previous `log`, and also
contains the data for `winupdate` and `score`.

`request` was also folded into `sideupdate`.
2018-01-28 21:06:49 -06:00
Guangcong Luo
6f2b1c0cd8 Battle protocol: Remove score message
score sending is now combined with the log message.
2018-01-28 21:06:49 -06:00
Guangcong Luo
f756b22dc7 Implement |bigerror|
Battles now send their errors using |bigerror|, which requires less
escaping and also correctly reports errors.
2018-01-28 21:06:49 -06:00
Guangcong Luo
9c037b17fe Refactor Battle constructor
`Sim.construct` no longer exists. Battles are now constructed directly
with `new Battle()`. Parameters other than formatid are now passed as
`options`.
2018-01-28 21:06:49 -06:00
urkerab
cdb12bd696 Fix last item handling (#4383) 2018-01-28 20:05:44 -06:00
Guangcong Luo
de7c58aad7 Validator: Fix egg move checking 2018-01-28 15:37:18 -05:00
Guangcong Luo
06bc0651b9 Fix room detection for doubles tier /data 2018-01-28 15:36:58 -05:00
Guangcong Luo
b19e1b819e
Fix typo in previous commit 2018-01-28 13:30:00 -06:00
Guangcong Luo
bf67a69606
Team Validator: Fix babyOnly check 2018-01-28 13:29:03 -06:00
Guangcong Luo
cd946a0a41
Correctly refactor Mew/Celebi checks 2018-01-28 12:24:42 -06:00
Marty-D
f0e180db0b
Validator: Refactor Mew/Celebi checks 2018-01-28 18:20:34 +00:00
Marty-D
ed519524b1
Gen V LC: Unban Carvanha 2018-01-28 17:22:23 +00:00
Marty-D
a9d9e199b3
Validator: Add VC level and Ball requirements 2018-01-28 17:17:30 +00:00
Guangcong Luo
f7c5f667ba Gligar is LC in Gen 4 2018-01-28 10:45:28 -06:00
Guangcong Luo
4f64074b6c Improve evolution move validation
This is specifically made to fix Nasty Plot + Surf Raichu.

Specifically, prevo moves are no longer compatible with evo event
moves.

Other incompatibilities (specifically, modern prevo moves with old-gen
evo moves) will be harder to fix, unfortunately.
2018-01-28 10:37:43 -06:00
Guangcong Luo
74143b652d Workaround for Celebi VC validation 2018-01-27 22:38:56 -06:00
urkerab
33c6033a5b Targets of the wrong type are immune to Synchronoise (#4381) 2018-01-27 18:10:11 -06:00
Marty-D
878060795f
Update modlog permission check 2018-01-27 22:12:46 +00:00
Marty-D
27dc108d6c
Fix forme tiering in past gens 2018-01-27 04:22:50 +00:00
KrisXV
85a6df66f4 Add UU Suspect Test (#4378)
http://www.smogon.com/forums/threads/3627043/
2018-01-26 19:45:02 -06:00