Commit Graph

23714 Commits

Author SHA1 Message Date
Kevin Lau
fad0c5c8fd Random Battle: Fix Malamar (#5308) 2019-03-13 17:36:29 +04:00
Ivo Julca
150c451d0d PRNG: Fix logging of random team seeds in replays 2019-03-13 01:00:44 -05:00
Guangcong Luo
125ffcc633 Add NOT_FAIL, FAIL, SILENT_FAIL to battle
This replaces battle.NOT_FAILURE. The others aren't used anywhere yet,
but should in theory provide more readability than `null` and `false`.
2019-03-13 11:25:23 +09:00
Slayer95
7a7ad8453d Fix regressions in team generators (#5302) 2019-03-12 18:44:38 -07:00
Kirk Scheibelhut
e9ccc7ecd6 Fix Stadium mod's stat modification logic (#5301) 2019-03-12 13:52:32 -07:00
Ben Davies
665c6e4499 Add autoconfirmed user metadata to /cmd userdetails (#5306) 2019-03-12 13:41:51 -07:00
Ridaz
09030176b1 Metronome Battles: Ban steel types (#5304) 2019-03-12 22:54:55 +04:00
The Immortal
10f01f8a41 Add 1v1 suspect test 2019-03-12 18:32:15 +04:00
The Immortal
6c3bee2ae6 Random Battle: More improvements
- Remove Dragon Tail from Lugia and replace Aeroblast with Psychic in current gen
- Revert previous Spiritomb change and instead remove Sucker Punch + Pain Split
- Give current gen Heatran Magma Storm (+Firium Z)
- Give Castform-Snowy Life Orb over Icy Rock
- Remove Air Balloon from 2x Ground weak Pokemon
2019-03-12 18:27:11 +04:00
Ivo Julca
37b537feea Fix long line warning 2019-03-12 00:35:51 -05:00
Ivo Julca
3686dcfe46 TS: ModdedDex#generateTeam() returns PokemonSet[] 2019-03-12 00:29:59 -05:00
Ivo Julca
6fe53e6b6d Test: Remove deprecated API in common lib 2019-03-11 21:26:16 -05:00
Ben Davies
29f9c97816 Commands: make /cmd roominfo call secret rooms secret, not private 2019-03-11 19:11:13 -03:00
Ben Davies
80cbca67e5 Make /modjoin false set room modjoin property to null, not undefined 2019-03-11 18:58:55 -03:00
The Immortal
91c1d661b9 Random Battle: Update Spiritomb 2019-03-12 00:16:51 +04:00
The Immortal
730b77ba3f Remove RU suspect notice 2019-03-11 23:21:48 +04:00
The Immortal
682cab6092 Random Battle improvements
- Update Castform sets
- Remove Psyshock from Hoopa-Unbound
- Allow Diggersby to get Choice Scarf
- Lower priority of Air Balloon selection
2019-03-11 23:15:46 +04:00
Ben Davies
6809679733 Trivia: allow batch adding/submitting questions 2019-03-11 14:55:02 -03:00
Konrad Borowski
525979c72d
Remove unused rewrite function from build script 2019-03-11 18:32:35 +01:00
Bär Halberkamp
f46aa55f43 Info: That's supposed to be global mod not roommod... 2019-03-11 17:50:25 +01:00
JetOU
09167da8dc Fix crash in server/punishments.js (#5300) 2019-03-11 17:09:18 +01:00
Slayer95
5828a60663
Sim: Quit parsing on too many choices 2019-03-11 02:04:22 -05:00
JetOU
1d70080d02 Fix crash in server/tournaments/index.js 2019-03-11 01:29:45 -05:00
Ben Davies
d8006887e4 Fix typo in server/tournaments/index.js 2019-03-10 23:04:42 -03:00
MacChaeger
a6d9afc356 Randbats: update Poliwrath (#5250) 2019-03-11 02:59:51 +04:00
MacChaeger
8fec7543ed Ensure that Genesect's forme matches its drive (#5296) 2019-03-10 16:22:43 -05:00
Guangcong Luo
47111ac4c7 Make side#getChoice() show ultra where relevant
Fixes #5294
2019-03-10 13:52:30 -05:00
Kirk Scheibelhut
4fe5fd2bf5 Split out 'Conversion 2' tests from targeting 2019-03-10 13:48:09 -05:00
Kirk Scheibelhut
1b2aeb696b Reject move commands with multiple flags (#5290) 2019-03-09 23:23:36 -06:00
MacChaeger
489b48c308 Rename most of room-battle.js's exports (#5289) 2019-03-09 22:34:17 -06:00
Kirk Scheibelhut
538731d6df Accept move choices with target/mega in either order (#5284) 2019-03-09 20:21:17 -06:00
Kirk Scheibelhut
98072fff34 Make the switch command more flexible (#5288)
Make it take a case-insensitive nickname or species id,
something several of our test cases already rely upon.
2019-03-09 20:15:12 -06:00
TheMezStrikes
fa862a2ef6 2v2: Unban Mega Gengar (#5287) 2019-03-10 03:42:59 +04:00
JetOU
708f656873 Info: Add /showpunishments command (#5223)
* Info: Add /roomstatus command

https://www.smogon.com/forums/threads/3534365/page-81#post-7977912
I'm not a big fan of the approach used here, but I didn't have any better ideas that worked.

* Fix build errors

* Remove response function

* Change command name

* Rewrite

* Use HTML pages

* Reword entries

* Check username map instead of IP map

* Prevent duplicate punishments from appearing.

* Use this.title

* Remove debug code

* Add a check if punishments exists

* Show ip and alts

* Pluralize IP

* Slight refactor in punishDesc

* Add check for Punishments.roomIps existence

* Return an error message for rooms without '-'

More specifically, rooms that aren't public, hidden or private. They couldn't use them anyway. This just handles them correctly.

* Join ip

* Use room.chatRoomData instead of...

checking for '-' in roomids.

* Update help command

* Clarify error message

* Simplify permission check

* Remove muteQueue variable

* Fix punishDesc

Alts would overwrite reason if it existed and punishDesc would always contain undefined due to not being defined empty. This commit fixes both bugs.

* Allow roomstaff to use /sp

* Refactor store iteration to for...of

As per CONTRIBUTING.md
2019-03-09 22:44:30 +01:00
Kirk Scheibelhut
9e7ba68fc4 Properly terminate BattleStream (#5283)
Fixes regression caused by #5210
2019-03-09 10:16:41 -06:00
Kirk Scheibelhut
e634d9a7b9 Cleanup Side & Dex after .ts refactor (#5273) 2019-03-09 10:14:11 -06:00
Kirk Scheibelhut
a8903d2563 Cleanup stat naming and types (storedStats, StatNameExceptHP) (#5274) 2019-03-09 09:53:11 -06:00
Kirk Scheibelhut
eef4935142 Fix race with replace in pokemon-showdown launcher (#5280) 2019-03-09 09:47:30 -06:00
Kirk Scheibelhut
d5710acf8a Remove unnecessary Array.prototype.values() calls (#5282)
These break on Node < v10.9.0
2019-03-09 08:49:10 -06:00
Ben Davies
1f63aa7675 Allow /cmd roominfo to say modjoin is set to true
Bots can't differentiate whether or not modjoin's setting is based off
of modchat's or not otherwise.
2019-03-09 03:23:58 -04:00
Ben Davies
6e5b225c74 Fix what /cmd roominfo says modjoin is set to, include modchat 2019-03-09 01:26:29 -04:00
Ben Davies
929471a18f Implement /cmd roominfo (#5279) 2019-03-08 21:15:53 -06:00
Honko
fc95f6e7d9 Gen 4 Random Battle improvements (#5275)
Fix bad sets for Bastiodon, Infernape, Jirachi, Regirock, Snorlax, Steelix.
2019-03-08 23:57:43 +04:00
Kirk Scheibelhut
27c6739ff7 Make builds replace safer and easier to use (#5277) 2019-03-08 13:51:52 -06:00
JetOU
85533ee3a0 Change forEach to for...of (#5269) 2019-03-08 11:24:58 -06:00
Marty-D
f5a75e9740
Datacenters: Add new ranges 2019-03-08 10:27:40 -05:00
Kirk Scheibelhut
91993df916 Continue cleaning up sim/ after .ts refactor (#5267) 2019-03-08 07:29:04 -06:00
The Immortal
7653384d20 Random Battle updates
- Only give Porygon-Z Z-Conversion under the right circumstances
- Slightly reduce the rating of Download so Porygon gets Adaptability a bit more
- Improve Haxorus' movepool
- Remove unviable Genesect sets
- Allow U-turn as the only STAB on Genesect
- Improve Magearna's movepool (+Fairium Z)
- Don't reject Flash Cannon with Special setup
- Give Fairies STAB when they need it
- Set Shift Gear as a Speed setup move
- Change the Life Orb bulk requirement to match Focus Sash
- Reject Trick with Speed setup
2019-03-08 17:27:44 +04:00
Kris Johnson
f11a1360e7 Chimera: Ban Primals and add Mega Rayquaza Clause (#5272) 2019-03-08 12:12:12 +04:00
Kirk Scheibelhut
4e74f766b8 Fix Gen 2 stat rollover hint (#5271) 2019-03-07 15:00:14 -06:00