Commit Graph

981 Commits

Author SHA1 Message Date
Guangcong Luo
6bd05bed2c Fix specialized Z moves
Specialized Z moves like Catastropika etc weren't working correctly.

Also, the generic Z moves weren't changing category correctly.
2016-11-18 03:53:03 -05:00
Guangcong Luo
224cf25e46 Fix bugs in Z-moves 2016-11-18 01:46:56 -06:00
Guangcong Luo
8f7d189838 Implement Z-moves 2016-11-18 02:44:29 -05:00
Ivo Julca
c8308ccd89 Sheer Cold no longer affects Ice-type Pokémon 2016-11-18 01:53:24 -05:00
panpawn
516bc8c5c6 Fix build errors (#2899)
Usage of `var` is deprecated
2016-11-18 00:42:39 -05:00
Ivo Julca
511a45eb95 Implement immunity of Dark-types to Prankster
The immunity also applies to any moves, even non-Status, called by
other Prankster-boosted moves.
2016-11-18 00:35:52 -05:00
Guangcong Luo
ae0abfb574 Gen 7 Challenge Cup 2016-11-17 23:41:11 -05:00
Guangcong Luo
acfeb39e7e Stub Z-move implementation
This is only the |request| half.
2016-11-17 23:41:11 -05:00
Ivo Julca
a1405e9c43 Gen 7: Turn order is decided by the ability and stats of the mega forme 2016-11-17 21:00:48 -05:00
The Immortal
e19aa8b77b Add gen 7 beta formats 2016-11-18 03:37:55 +04:00
Marty-D
83acbc578d Add preliminary Gen 7 changes 2016-11-17 11:06:12 -06:00
The Immortal
e65eed19a1 Random Battle: Minor improvements 2016-11-17 20:15:33 +04:00
The Immortal
564c28f158 Random Battle: Improve special setup sets
This fixes Pokemon having two of the same type moves, for example
Fire-types with Fire Blast and Lava Plume or Psychic-types with Psychic
and Psyshock, because the Hidden Power was rejected.
2016-11-06 20:19:56 +04:00
The Immortal
21cd59d2f8 Random Battle: Improvements 2016-11-01 10:13:44 +04:00
The Immortal
bc49845604 Random Battle updates
- Improve Aerodactyl’s moves
- Make sure Dedenne has STAB other than Nuzzle
2016-10-30 01:58:47 +04:00
Guangcong Luo
7d8d47c97c Refactor BattleEngine
Battle is now an ES6 class... mostly... it's complicated.

Battle's inheritance system has always been a mess. I tried to redo it
in a sensible way but it caused nondeterministic test failures. Not
even kidding; different things would fail each time I ran tests, even
without code changes. I'll investigate closer later, but this refactor
makes it use ES6 classes with only a small amount of hacking, which is
good enough. It is, at the very least, simpler than the previous mess.

BattleEngine.Battle.construct has been renamed BattleEngine.construct.
2016-10-22 23:11:26 -05:00
The Immortal
736598eaf3 Random Battle: Improvements
- Update moves for Cosplay Pikachu
- Prevent Protect with dual screens
- Lower Castform’s rate
2016-10-19 22:30:04 +04:00
The Immortal
f11cf66b03 Random Battle updates 2016-10-16 18:11:43 +04:00
urkerab
efdc8e33a0 Run powder immunities in the correct order (#2842) 2016-10-14 23:11:59 -04:00
The Immortal
95ab7f66f4 Random Battle updates
Fixes #2796
2016-10-10 23:55:51 +04:00
Marty-D
aac63d3e26 Fix various issues with Bide
Corrects all of the following
Gen 2: lasts 2-3 turns
Gen 3: can't hit Ghosts
Gen 4: can hit Ghosts, stops immediately when the user falls asleep or
becomes frozen
Gens 2-6: Stops immediately when the user is prevented from moving
2016-10-06 21:33:30 -04:00
The Immortal
b078676c35 Remove the Seasonal format 2016-10-05 23:07:35 +04:00
The Immortal
741a07f324 Random Battle: Update items 2016-10-01 02:05:27 +04:00
Marty-D
bc652d4f62 Fix Struggle recoil timing
Fixes #2780
Also fixes a damage rounding issue.
2016-09-24 20:39:45 -04:00
The Immortal
ff09fc86dc Random Battle: Give Reuniclus Magic Guard
Regenerator is generally a good ability, but Reuniclus always prefers
Magic Guard.
2016-09-17 17:45:50 +04:00
The Immortal
c32b324ee4 Random Battle: Give weather abusers Life Orb 2016-09-12 21:50:56 +04:00
The Immortal
63a457ff50 Random Battle updates
- Give Togetic Super Luck
- Prevent Physical and Special setup on the same set
2016-09-11 05:03:27 +04:00
The Immortal
3c10010305 Allow Togetic in Randoms 2016-09-07 04:12:43 +04:00
The Immortal
61a6975424 Remove randomDoublesTeam
It’s almost identical to randomTeam.
2016-09-07 04:11:41 +04:00
Taylor Everding
1a1f64fe95 Remove .js extension from requires (#2725) 2016-08-30 00:04:40 -05:00
The Immortal
2a63a84544 Random Battle improvements 2016-08-23 22:16:14 +04:00
urkerab
d5b985adc5 Make Illusion wear off properly after Ability-ending effects (#2638) 2016-08-11 18:47:58 -04:00
The Immortal
5704e1b059 Random Battle: Buff Slurpuff 2016-08-06 01:36:41 +04:00
Ivo Julca
62a5397083 Lint: Use latest version and features of ESLint 2016-08-03 01:24:36 -05:00
Marty-D
cd974caf3d Add Poison Touch activation 2016-07-29 11:39:38 -04:00
urkerab
2855e26d07 Slice template types before sorting (#2648) 2016-07-27 00:38:17 +04:00
The Immortal
62c8d78b8e Random Battle updates
Closes #2603
2016-07-13 00:53:27 +04:00
asgdf
92dd3cb57d Replace confusing variable name (#2619)
A variable named "pokemonLeft" should probably not be increasing. Since
it's effectively referring to the current size of the team, might as well
use Array.length.
2016-07-11 18:29:50 -05:00
asgdf
c695a33a97 Make 5 mon monotype randbats teams way less likely (#2611)
Due to the "each type combination only once" restriction, Normal-type
teams had a ~0.1% chance of having only 5 members, as most of its type
combinations are only used by a single mon which could easily be skipped
due to tier restrictions or bad luck.
The types were also not sorted before filtering, so it was entirely
possible to have Fighting/Psychic and Psychic/Fighting on the same team.
So, this sorts before filtering, but raises the limit to 2 of each
combination per team, which hasn't yielded any 5 mon teams across 10000
generated teams.
2016-07-09 20:38:20 +04:00
The Immortal
e17527180e Random Battle: Prevent Draco Meteor with Outrage 2016-07-08 22:12:58 +04:00
Marty-D
a99bd01cf3 Refactor boosting
- Boosts now show the correct boosting message (i.e. using Swords Dance
at +5 Attack will show the +1 message instead of +2).
- Boosts now show the appropriate maxed out message when a stat cannot
be raised/lowered further, instead of simply failing or failing
silently, unless the boost is an additional effect.
2016-07-06 11:28:06 -04:00
Juanma Serrano
e1d8459dc4 Seasonal: Fix typos 2016-07-03 12:34:09 +02:00
Juanma Serrano
b647742cdf Seasonal: Use learnset if no random moves set found 2016-07-03 11:00:22 +02:00
Kevin Lau
2df9f27b9f Implement July Seasonal: Fireworks Frenzy (#2602)
Sky Battle with Fire-type "hail" in the form of fireworks sparks.
2016-07-03 01:44:49 -07:00
Guangcong Luo
21a742a591 Add hint clarifying no-PP message
We've gotten way too many "bug reports" about it.
2016-06-26 22:41:05 -07:00
The Immortal
2e42e97e4f Random Battle: Improve Water-type Pokemon 2016-06-26 05:31:48 +04:00
Ivo Julca
2215696664 Fix syntax error from de04698 2016-06-18 21:20:25 -05:00
The Immortal
de04698b7f 80d27e1: Use find instead of filter
And remove unneeded parentheses from df66184.
2016-06-19 01:13:11 +04:00
The Immortal
80d27e1276 Random Battle improvements 2016-06-19 00:33:53 +04:00
Kevin Lau
e3ef19dadd Seasonal: Pass custom move sets into randomSet when generating teams (#2591)
This fixes issues like getting Choice items on Pokemon with setup moves.
2016-06-17 17:44:21 +02:00