The Immortal
a8776fdb45
Random Battle: Prevent Psychic and Psyshock together
2016-03-19 07:07:22 +04:00
Ivo Julca
0281176fd1
Remove usage of Array|Object methods implemented by Sugar.js
...
Adds a dependency to shim Object.values until it's natively available.
2016-03-09 16:55:34 -05:00
Ivo Julca
23573646de
Fix information leak in random formats
2016-03-04 19:46:25 -05:00
Quite Quiet
20877368a3
Pass list of hit targets with [spread]
2016-03-03 22:57:11 +01:00
Quite Quiet
7a14a8f547
Notify client when a move is a spread move
2016-03-02 10:42:09 +01:00
Juanma Serrano
b88cf8fb7c
Seasonal update
...
Improve Grappling Hook and add a move for Summer
2016-03-02 09:55:13 +01:00
Juanma Serrano
c92f87993f
Implement March Seasonal, Dimension Doom
2016-02-29 14:44:51 +01:00
The Immortal
5047fda6fc
Random Battle improvements
2016-02-28 00:35:15 +04:00
The Immortal
9e16f45902
Random Battle updates
...
- Improve Flying types by making sure they have a second STAB if they
need it
- Revert bf0af09d7c and instead hardcode
the moveset modification for Aggron; Autotomize does have a benefit
with Heavy Slam
2016-02-27 03:24:51 +04:00
The Immortal
2b02f1ee2e
Random Battle: Prevent Trick with setup
2016-02-17 18:06:37 +04:00
The Immortal
00ea930a93
CC: Fix Smeargle having CAP moves
2016-02-16 18:20:35 +04:00
The Immortal
ab7eb70c44
Random Battle: Add minimum SpD for Assault Vest
...
Fixes #2424
2016-02-16 16:42:00 +04:00
Guangcong Luo
76dd4a586f
Remove unused isSetup variable
2016-02-16 01:08:55 -05:00
Guangcong Luo
b665660608
Refactor for more ES6 features
...
Now that nodejs/node#3072 is mostly fixed, we can finally start using
Node 4+ features.
This refactor:
- uses arrow functions where appropriate
Note that arrow functions still aren't used in Mocha, where `this`
is sometimes meaningful.
This also removes the need for .bind() nearly everywhere, as well
as the `self = this` trick.
- refactors Validator and Connection into ES6 classes
- no longer uses Array#forEach for iterating arrays
We strongly prefer for (let i = 0; i < arr.length; i++) because of
performance reasons. Most forEaches have been replaced with for..of,
though, which is 5x slower than the long-form loop but 2x faster
than forEach, which is good enough outside of most inner loops.
The only exception is tournaments, which is due for a more invasive
refactor soon anyway.
2016-02-10 17:40:21 -06:00
The Immortal
477d11c906
Random Battle: Improve Lucario
2016-02-08 01:30:32 +04:00
Guangcong Luo
8a8838552d
Improve crashlogger
...
Crashlogger now supports passing in a dictionary of additional
information to report, so we no longer need to resort to making fake
errors.
The hadException parameter has now been removed entirely. I don't know
of a use case for it to be false.
2016-02-04 03:04:05 -06:00
Marty-D
4c8ab041ce
Fix Protean interaction with Toxic
2016-01-20 21:05:49 -05:00
Guangcong Luo
85ddb7dddb
Fix Pressure PP deduction
...
It was deducting PP for called moves and second turns of two-turn moves.
2016-01-19 20:01:09 -05:00
Guangcong Luo
f3d10c0122
Merge pull request #2368 from urkerab/sample-no-replace
...
Simplify sampleNoReplace function
2016-01-13 20:11:45 -08:00
urkerab
4a5b7f6c88
Simplify sampleNoReplace function
2016-01-14 01:06:16 +00:00
Kevin Lau
3de25827cb
Random Battle: Reject Tinted Lens without variable-damage attacks
2016-01-11 21:37:24 -08:00
The Immortal
8e868eba9d
CC: Fix Rotom formes and Pumpkaboo-Super
2016-01-11 19:10:50 +04:00
The Immortal
7b2c60c536
Random Battle: Prevent Trick with Sucker Punch
...
Affects Zoroark.
2016-01-11 09:17:44 +04:00
Kevin Lau
17bbc24027
Seasonal: Reduce number of Pokemon 4x weak to Ice
2016-01-05 20:28:53 -08:00
Kevin Lau
f8e881a416
Implement January Seasonal, Polar Opposites
...
Mono-Ice, Inverse Battles.
2016-01-04 14:17:51 -08:00
Guangcong Luo
78db0952e8
Fix bug with formes in random battles
2016-01-04 12:37:36 -05:00
Konrad Borowski
81f602b8d8
Always use trailing comma for multiline objects
2016-01-01 00:20:07 +01:00
The Immortal
6eabca8b25
Random Battle improvements
2015-12-31 21:10:09 +04:00
Guangcong Luo
1f750fead0
Remove forme name from default nickname
2015-12-30 22:11:46 -05:00
The Immortal
4a48d8c398
Random Battle: Fix Rest/Sleep Talk sets
2015-12-30 19:52:34 +04:00
The Immortal
c85d1c038b
Random Battle: Improve Snorlax and Swellow
2015-12-29 22:40:57 +04:00
Marty-D
17009c4a7b
Challenge Cup: Fix item generation
2015-12-29 11:52:28 -05:00
The Immortal
1b2dfac818
Random Battle changes
...
- Fix the teamDetails changes from f26a418
- More RestTalk improvements
- Don’t count Sand in type combo limit
2015-12-25 13:38:20 +04:00
The Immortal
f26a418ea3
Random Battle updates
2015-12-25 04:05:43 +04:00
The Immortal
a8951205ec
Random Battle: Prevent Sleep Talk without Rest
...
More strictly than previously.
2015-12-22 21:39:25 +04:00
Kevin Lau
8d25d46f43
Random Battle: Favor Poison Jab over Sludge Wave on Seviper
...
Because of how moves are generated when a Pokemon has a setup move in its
move list, Seviper has a high chance of getting bad sets if Poison Jab is
rejected and Coil is added to its moves.
2015-12-21 01:15:34 -08:00
The Immortal
ce41ed8435
Random Battle updates
2015-12-18 03:09:47 +04:00
The Immortal
2de41c569f
Random Battle updates
2015-12-15 21:35:52 +04:00
The Immortal
583fc9b483
Random Battle: Fix AG check
...
The original check didn’t do anything because Megas are selected in
randomSet and not in randomTeam.
2015-12-15 01:23:31 +04:00
Marty-D
2e83e276ef
Fix minimum recoil damage properly
...
- Recoil damage is always minimum 1
- Gen 5 is the only exception: if the move dealt 0 damage, no recoil
occurs
2015-12-13 23:17:49 -05:00
The Immortal
cbbb792310
Random Battle updates
...
- Add a counter for draining moves; give Pokemon Life Orb with
Substitute if they have a draining move
- Do not Reject U-turn on Mega Beedrill
- Prevent Focus Sash on lead Pokemon that have a recovery move
- Increase the level of non-setup Slurpuff
- Remove AG Pokemon from Random Battle
2015-12-13 01:34:37 +04:00
The Immortal
bcf0fed850
Ban Shadow Tag from OU
...
And remove the unneeded bans in UU and Tier Shift, as well as update
Random Battle levels.
2015-12-12 05:53:13 +04:00
Kevin Lau
e322393d9e
Revert "Random Battle: Fix dual STAB for Psychic-type Pokemon"
2015-12-10 13:08:25 -08:00
The Immortal
affe8c9be6
Merge pull request #2314 from ascriptmaster/randoms
...
Random Battle: Fix dual STAB for Psychic-type Pokemon
2015-12-11 00:40:44 +04:00
Kevin Lau
6b92afafdf
Random Battle: Fix dual STAB for Psychic-type Pokemon
2015-12-10 12:10:05 -08:00
The Immortal
48f9f97375
Random Battle improvements
...
- Reject Sucker Punch if you have more than one Dark attack and Dark
isn’t one of your types
- Improve Adaptability check (fixes #2312 )
2015-12-11 00:05:57 +04:00
The Immortal
e48ac8338b
Random Battle updates
...
- Improve Ice types
- Remove check for moves in the pool (affects Darkrai requiring Dark
Void)
2015-12-09 22:50:39 +04:00
The Immortal
850789247d
Random Battle: Improve Electric types
...
Electric types should always have an Electric attack.
2015-12-07 18:55:50 +04:00
The Immortal
8da6d39a9f
Random Battle: Fix several checks
...
And prevent Night Shade with two other attacks.
2015-12-07 04:12:24 +04:00
The Immortal
a6d06116ff
Random Battle: Keep track of the available moves
...
Previously, it only did so if the set had a setup move. This fixes a
bug introduced in the last commit, as well as checks that used these
counters.
2015-12-07 03:31:51 +04:00