Guangcong Luo
1eee50788f
Refactor createBattle
2019-04-06 21:40:56 +08:00
Guangcong Luo
4c47af28aa
Refactor moveHitData
...
This is actually three refactors:
- swap around thing:slot for slot:thing in MoveHitData
- add Pokemon#getSlot
- remove the ActiveMove class; it's back to being an interface
2019-04-06 19:10:45 +08:00
whales
770d3e6b50
Typescript tours ( #5323 )
2019-04-06 15:51:32 +08:00
Kirk Scheibelhut
0efd71dfef
Move Data.ActiveMove methods to Pokemon ( #5416 )
...
See #5415 for context - having these methods is unsafe and leads
to crashes because not all ActiveMoves are created through the
Data.ActiveMove constructor. Instead of Pokemon, these could
alternatively be static methods on ActiveMove (or the ActiveMove
class could be completely abolished and reverted back to an
interface), but #5415 will deal with ActiveMove long term, this just
fixes the crashes.
2019-04-06 13:14:50 +08:00
Kirk Scheibelhut
812e4efb57
Document |-sethp|
2019-04-05 20:09:44 -07:00
HoeenHero
bc069e4f27
Fix Input Logs
2019-04-05 18:26:52 -04:00
Marty-D
707239c897
Fix Fury Cutter
2019-04-05 16:33:46 -04:00
The Immortal
204997233e
Move Mega Sableye to UUBL
2019-04-05 23:58:01 +04:00
TheMezStrikes
0ac6e55adf
Allow Room Owners to use addhtml ( #5409 )
2019-04-06 01:55:26 +08:00
MacChaeger
fe1613797f
Fix Z Moves breaking Protect ( #5413 )
2019-04-06 01:06:22 +08:00
Austin Couturier
706b46cafd
Allow Global Voices and higher to pm /code ( #5411 )
2019-04-06 01:02:49 +08:00
Kirk Scheibelhut
3bdd4b95c6
Make RandomPlayerAI capable of playing VGC ( #5410 )
2019-04-05 08:21:57 -07:00
Guangcong Luo
5f8b1b81f1
Improve Help ticket messages
2019-04-05 10:55:03 -04:00
Guangcong Luo
851d1a8fb9
Improve !code's appearance
...
(Also alias /calc to /math)
2019-04-05 10:54:34 -04:00
Guangcong Luo
12f49b20e1
Move /code and /pi to chat-plugins/info.js
...
The two are definitely not core commands.
2019-04-05 09:41:11 -04:00
JetOU
25dd6ffcbc
Improve /sp ( #5309 )
...
* Improve SP
* Remove useless code
which fixes a build error, killing two birds with one stone
* Move sorting code to page
* Increase readability
* Further increase redability
* Remove useless alts filtering
* Add semicolon
* Standardize output in punishments.js
* Remove punishDesc
* Close div tag
* Don't show if they end in 0s
* Improve conditional
This should (hopefully) fix a bug where a roomban showed up as 12 months, which is what happenes when `Chat.toDurationString` gets a negative number, `Chat.toDurationString` doesn't recognize anything below 1000ms anyway.
* Prevent rooms with '-' to use /sp
* Pluralize IP
* Fix mismatched tags
* Fix sort callback
* Remove useless conditional
2019-04-04 18:19:41 -04:00
The Immortal
fc458396f2
Remove VGC '19 Moon Series ladder
2019-04-04 15:51:53 +04:00
Kevin Lau
cd9694cd20
Random Battle Gen 3: Update ability selection ( #5402 )
...
This updates the gen to use the ability selection algorithm from future
gens, where it defaults to the highest rated ability if all are rejected.
2019-04-04 15:50:17 +04:00
MacChaeger
d3f1161b62
Fix Weakness Policy and Clangorous Soulblaze in doubles ( #5389 )
2019-04-04 18:51:27 +08:00
Kirk Scheibelhut
6c1ab30977
Update dependencies ( #5407 )
2019-04-04 14:39:53 +08:00
Kirk Scheibelhut
d938f7ff22
Fix LGTM alert in data/mods/gen4/random-teams.js ( #5406 )
2019-04-04 01:50:13 +04:00
Kirk Scheibelhut
272700f2b2
Fix crash from Gen 4 Custap Berry + Trump Card interaction ( #5395 )
...
Fixes #5393
2019-04-04 01:20:11 +08:00
Guangcong Luo
6bd94fe95b
Add Spandan to Credits
2019-04-04 01:16:34 +08:00
The Immortal
bfa0394e93
Gen 4 Randoms: Update ability selection
...
This copies the ability selection from future gens where it defaults to the highest rated ability if all are rejected.
2019-04-03 21:14:01 +04:00
Guangcong Luo
b059f58ecf
Add scheibo to Credits
2019-04-04 01:01:20 +08:00
Kirk Scheibelhut
ece322801d
Introduce dev-tools/harness.js for testing/benchmarking ( #5370 )
2019-04-04 00:47:47 +08:00
The Immortal
55ba9410c8
Actually ban Trapinch from LC
2019-04-03 16:30:36 +04:00
Ivo Julca
121c4a3b24
Sim: Abort parsing choices if any is invalid
...
Fixes #5399
2019-04-03 02:08:59 -05:00
Merritty
b5a0644aa8
Ban Trapinch from LC ( #5400 )
...
https://www.smogon.com/forums/threads/usum-lc-trapinch-suspect-voting.3648825/post-8086522
2019-04-03 15:03:47 +08:00
Spandan Punwatkar
6856ee9b23
Add sort parameter to /dexsearch ( #5291 )
2019-04-03 14:42:47 +08:00
Kirk Scheibelhut
0f8241045b
Test 'noCancel' behavior to prevent #5344 ( #5348 )
...
Renames currentRequest -> requestState to avoid confusion.
2019-04-03 11:58:53 +08:00
Kirk Scheibelhut
915dd3f4a0
Stop returning default from RandomPlayerAI ( #5394 )
...
`default` papers over AI logic errors. This change fixes those
errors instead:
- handle maybeDisabled/maybeTrapped properly
- use 0 PP and ally-less 'adjacentAlly' moves if necessary.
2019-04-03 11:53:02 +08:00
Kris Johnson
a53d6a8af7
Remove LC suspect notice ( #5398 )
2019-04-03 02:12:11 +04:00
Spandan Punwatkar
2978546982
Add alias for Regenerator ( #5396 )
2019-04-02 15:39:09 +04:00
force
e3e269956a
SSB: update ranks and fix moves ( #5380 )
2019-04-01 22:12:19 -04:00
Marty-D
ac5c0a5760
Tiers: Update for April tier shift
2019-04-01 14:30:01 -04:00
The Immortal
4c32279c81
Fix crash
2019-04-01 19:48:56 +04:00
The Immortal
b5803ec713
Fix OMotM
2019-04-01 19:46:43 +04:00
The Immortal
ca20958a39
Remove Megamons mod
2019-04-01 19:27:03 +04:00
The Immortal
1738beca63
Add new RoA Spotlight
2019-04-01 19:21:36 +04:00
The Immortal
a864d38240
Random Battle updates
2019-04-01 19:05:08 +04:00
The Immortal
450d8f9edf
Add new OMotM
2019-04-01 19:04:30 +04:00
LegoFigure11
101e973ab9
BF: Update Marshadow ( #5388 )
...
Prevents fully Physical Marshadow from getting a Mixed Nature
2019-03-31 19:01:05 +08:00
MacChaeger
28affbc0ce
Prevent a tournament exploit ( #5353 )
2019-03-31 18:19:47 +08:00
JetOU
0976c5f3c3
Helpticket: Use for-of instead of for-in in arrays ( #5385 )
2019-03-30 20:56:41 -05:00
Ivo Julca
b369b0f680
Sim: Fix crash in Team Preview
...
Regression from the deletion of parseChoice() @698fb2a
2019-03-30 19:39:24 -05:00
Slayer95
6384964a10
Sim: Z Moves may only be disabled when all base moves are ( #5387 )
2019-03-30 18:14:53 -04:00
MacChaeger
b8aa1048e2
Don't display "But it failed!" on a success ( #5386 )
2019-03-30 15:38:48 -04:00
Kirk Scheibelhut
1c147644e9
Make sure BattleStream only calls _destroy once ( #5382 )
2019-03-31 00:29:20 +08:00
Kirk Scheibelhut
19bde75842
canZMove should not be set for disabled moves ( #5384 )
...
Fixes #5383
2019-03-31 00:24:56 +08:00