Commit Graph

13492 Commits

Author SHA1 Message Date
Lionyx
80264f0efb Update [Gen 7] OU Sample Teams link (#3842) 2017-07-29 21:06:19 +04:00
Austin Bartnicki
60170a68f2 Updated UU Tier Threads (#3843) 2017-07-29 21:05:48 +04:00
Guangcong Luo
73f7c99882 Support custom timers for formats 2017-07-29 02:02:46 -04:00
Marty-D
353bc56298 Fix Gen 6 formats 2017-07-28 22:27:12 -04:00
jumbowhales
4e84ab8ced Uno: Fix syntax error (#3841) 2017-07-28 22:26:52 -04:00
Guangcong Luo
b4be9f1982 Battle timer: Send total time as well as turn time 2017-07-28 21:25:49 -04:00
Guangcong Luo
882c37cd39 Make timer saner
Currently, the timer adds +20s/turn to your total time if your total
time is under 160s, and adds +10s otherwise.

Now, it adds +20s/turn in doubles/triples and +10s/turn in singles,
which should be much clearer.
2017-07-28 21:13:31 -04:00
panpawn
048ee759ff Modlog: Refactor line specification (#3820)
Before, if you wanted to specify how many results you wanted from a modlog search:
1. You could not search for any text
2. It was capped at 100 results

Now, we drop support for the old means of specifying lines, and instead we have a "More results..." button in modlog's UI.

We also support an undocumented means of specifying lines in the form of: /modlog [roomid], [search] [lines=integer], where integer is the number of lines of results you would like to see.
NOTE: We purposely are not documenting this behavior, as it is mostly made use of in the UI

We also update the help command here to reflect these changes.
2017-07-28 14:32:28 -04:00
HoeenHero
e25653b86a Escape HTML in punishment info (#3835) 2017-07-28 14:07:54 -04:00
n10sit
8d14b4d9fa Doubles UU: Ban Aggronite (#3839) 2017-07-28 13:41:27 -04:00
n10sit
6c1280a5b3 BW2 Doubles: Ban Swagger (#3837) 2017-07-28 13:28:51 +04:00
Bär Halberkamp
901fff708e Fix mistake in getAltUsers 2017-07-28 00:16:12 -04:00
Guangcong Luo
f432cc9ef8 Improve CONTRIBUTING.md 2017-07-27 23:21:09 -04:00
Bär Halberkamp
4c52d939a1 Improve wording of tournament ban commands 2017-07-27 18:37:12 -04:00
Bär Halberkamp
464768e7d8 Refactor both locks and punishments (#3698)
This both allows staff to lock users that are offline, given they have a previous punishment (globally or in any room)
This also will utilize existing punishment information for handling nameblacklists, making a nameblacklist of a user with a current punishment equivalent to having used /blacklist at the moment of that punishment
2017-07-27 18:36:34 -04:00
HoeenHero
67cf1e2453 Fix monotype randbats (#3836) 2017-07-27 17:57:36 -04:00
Guangcong Luo
bbf7bc98d2 Fix random battle sets
(There were doubles sets in singles games)
2017-07-27 17:49:38 -04:00
Guangcong Luo
acc165d4db Fix bugs in previous commits 2017-07-27 17:24:55 -04:00
Guangcong Luo
7f72f09e5d Rename Dex.format -> Dex.forFormat 2017-07-27 17:10:44 -04:00
Guangcong Luo
edf5f61eff Support "both players lose"
Now, passing a p1score of -1 to ladders.js means that both players
lose.
2017-07-27 17:08:28 -04:00
The Immortal
fb5939d6cf Remove RU suspect test 2017-07-27 23:43:47 +04:00
The Immortal
23cb0d1955 Move Heracross to BL2 2017-07-27 23:35:06 +04:00
The Immortal
4126e6e99d Add Monotype Suspect Test 2017-07-27 15:02:39 +04:00
The Immortal
d0606f5cce Aurora Veil is viable 2017-07-27 14:12:32 +04:00
Kevin Lau
f519d444f6 Random Doubles: Implement EV fixing for Belly Drum, etc. (#3834)
Copied over from the Random Singles code, minus the Stealth Rocks check.
2017-07-27 03:34:28 -04:00
Konrad Borowski
30ab12c19a Reset disconnect timer when joining even when timer is disabled (#3815)
This prevents an exploit that allows automatically winning when
opponent has disconnected by disabling timer when opponent disconnects
and reenabling it when opponent joins battle again.
2017-07-27 00:45:30 -04:00
Marty-D
1206b24aff Add new event Pokemon 2017-07-26 21:14:21 -04:00
Shashwat Chandra
33c7330ea5 Add lowers filter for /movesearch (#3811) 2017-07-26 15:09:12 -04:00
HoeenHero
851058398b Gen 3 randbats: minor changes (#3831) 2017-07-25 19:51:22 +04:00
Guangcong Luo
0e792dad80 Update default gen for formats to gen 7 2017-07-25 03:37:55 -04:00
Guangcong Luo
eb6fe5ce41 Improve tests 2017-07-25 03:25:25 -04:00
Guangcong Luo
6e7aa9c8dd Remove mock-fs-require-fix from dependencies 2017-07-25 03:01:15 -04:00
Guangcong Luo
4cdf39f13c Remove prototype hack for Battle
Simulator instances still get their scripts included somewhat hackily,
but it's overall much less hacky than before. In particular, the
init code is now an actual constructor, allowing TypeScript to perhaps
validate it one future day.
2017-07-25 02:59:59 -04:00
Guangcong Luo
0ba508bbd3 Support ./pokemon-showdown generate-team
I might regret supporting this syntax, but it's now possible to make
PS generate teams on the commandline using:

./pokemon-showdown generate-team [optional format name] [optional seed]

The output will be in packed team format (which can be pasted into
a teambuilder import box).

The seed-passing should make it significantly more straightforward to
debug team generation weirdness.
2017-07-25 02:59:59 -04:00
Guangcong Luo
3b4d8b3ff0 Split random-teams.js out of scripts.js
Random team generation scripts are no longer in scripts.js, but instead
in a new file random-teams.js.

The scripts are now also no longer run from inside battles, but in a
new team generator object. This makes it easier for external scripts
to generate random teams by running Dex.generateTeam(format).
2017-07-25 02:59:59 -04:00
asgdf
e9e66afa0c Fix priority shorthand parameter in movesearch (#3828)
'priority+' now includes priority +1, and 'priority-' includes -1
2017-07-24 15:33:27 -07:00
The Immortal
e775bd909a Remove OU Theorymon 2017-07-25 01:07:25 +04:00
HoeenHero
a264c4f955 Revert a9e28b0 (#3830) 2017-07-24 15:21:47 -04:00
Konrad Borowski
b91c3cff90 Make battle rule clauses work recursively
This is an ugly fix, there is likely a better one, but this fixes
a problem with clauses like Species Clause not working.
2017-07-24 20:27:11 +02:00
Insist
9422859161 Gen 7 Doubles OU: Add Swagger Clause (#3827) 2017-07-24 19:55:33 +04:00
The Immortal
a9e28b0f45 Fix formats
d79e348 prevents the Pokemon ruleset from being inherited.
2017-07-24 18:38:40 +04:00
HoeenHero
11b93ec467 Alola Pokedex rule: Dont reject alola formes (#3826) 2017-07-24 18:35:23 +04:00
n10sit
268fd70bc7 Random Doubles: Movepool updates (#3744) 2017-07-24 17:39:28 +04:00
The Immortal
d36ba3bf36 Random Battle: Shuffle Pokemon 2017-07-24 17:20:51 +04:00
The Immortal
51bffce3cd Add 1v1 suspect test 2017-07-24 17:03:47 +04:00
Charlie Kobayashi
8a70763a76 UNO: make uno less subtle, allow player to uno before next player plays. (#3822) 2017-07-23 22:24:28 -07:00
Guangcong Luo
a86762e4ea Fix in-battle clauses 2017-07-23 22:20:42 -07:00
Guangcong Luo
f38de6d775 Remove padStart shim
The padStart shim is currently unused and commented out. If we ever do
need it, we should increase the minimum Node version to 8.0.
2017-07-23 22:17:07 -07:00
Insist
83e89672a0 Add CAP LC and NFE to the Allow CAP clause (#3823) 2017-07-23 19:40:13 -04:00
Insist
b661ed9c90 Add "CAP NFE's" (#3821)
Turns out there is indeed some of these that are not LC but indeed CAP NFE's so I will make this a rank to clarify the difference and will make a PR on the client in tandem shortly
2017-07-23 13:48:56 -07:00