Guangcong Luo
fed4fefd85
Refactor Protect/etc, fixing Z move penalty
...
Protect is now implemented in scripts.js:runProtect, for slightly less
duplicated code.
2016-11-25 22:20:01 -06:00
urkerab
a580d7706f
Add various Z-move messages ( #2947 )
2016-11-25 20:24:35 -05:00
Ivo Julca
a0601bdb73
Add MoveAborted event, to be run when move execution stops on BeforeMove
2016-11-25 15:23:52 -05:00
Ivo Julca
e45d4bbdac
Fix turn order to account for abilities traced by Mega Evolutions
2016-11-24 22:44:27 -05:00
Marty-D
db06476c1f
Fix Prankster immunity condition
2016-11-23 18:34:38 -05:00
Marty-D
70b98abcb1
Update protection-breaking with Baneful Bunker
2016-11-22 18:06:51 -05:00
The Immortal
2869cf008d
Random Battle improvements
2016-11-23 00:05:02 +04:00
Kevin Lau
41a063391b
Random Battle: Give Fire-type Guts Pokemon a Toxic Orb ( #2934 )
...
Because they can't get burned.
2016-11-22 23:50:39 +04:00
The Immortal
6ef8fed674
Fix Rayquaza interaction with Z-Crystals
2016-11-21 15:37:42 +04:00
The Immortal
3c0864a3df
Random Battle updates
2016-11-21 02:50:26 +04:00
Kevin Lau
34e1472eec
Random Battle: Fix Arceus item generation ( #2919 )
...
Z-Crystals don't affect Judgment's type, so an Arceus with Judgment as its
STAB should receive a plate only.
2016-11-20 02:30:38 -05:00
Ivo Julca
6dc9cb16ec
Randbats: Adjust rate for Silvally
2016-11-20 02:27:23 -05:00
Ivo Julca
607c217d2f
CC: Normal Arceus should not hold a typed Z-Crystal
2016-11-20 02:27:04 -05:00
Ivo Julca
9e46ee727e
Set zMoveUsed flag only after the Z-Move could actually be used
...
Fixes issue when put to sleep before moving.
2016-11-20 01:31:39 -05:00
Ivo Julca
3a5348bfc9
CC: Fix rare issue of sets with illegal items being generated
...
Found via stress-testing with a test/simulator/misc/random-teams.js variant.
2016-11-20 01:10:45 -05:00
Ivo Julca
0a1fa67a5a
Fix generation checks in random team generators
2016-11-20 00:52:36 -05:00
Guangcong Luo
ad8ef6c090
Merge/fix CC/HC random pokemon generation
...
Previously, the code was duplicated and buggy.
I have suspicions this doesn't fix it completely, but it should at least
crash a lot less and give more informative crash messages.
2016-11-19 23:49:33 -05:00
urkerab
3cc3217aa4
Allow Hackmons Cup for past gens ( #2913 )
2016-11-20 01:22:09 +04:00
Ivo Julca
7fd8283600
Introduce requiredItems as an alternative to requiredItem
...
The list of acceptable items can always be retrieved from `requiredItems`.
2016-11-19 15:44:57 -05:00
Ivo Julca
00ced09ba3
Revert 4aaa3cb
2016-11-19 15:44:56 -05:00
Ivo Julca
4aaa3cb260
Move .templateRequiredItem to array everywhere
2016-11-19 15:23:42 -05:00
Guangcong Luo
4abed0add6
Fix crash in random battles
2016-11-19 14:54:33 -05:00
Guangcong Luo
b9e32f1d29
Rename restoreboost to clearnegativeboost
2016-11-19 14:48:19 -05:00
Slayer95
a3e3249a8f
Spectral Thief should zero boosts despite of target abilities ( #2906 )
2016-11-19 14:38:54 -05:00
Marty-D
fd7a1a0a35
Fix typo
2016-11-19 13:21:02 -05:00
Marty-D
e7e133f397
Fix stat restoring Z-Effect
2016-11-19 12:56:40 -05:00
The Immortal
ca665d83e9
Fix typo
2016-11-19 15:29:36 +04:00
The Immortal
0d2ed2db11
Make randomTeam work for multiple gens
2016-11-19 15:28:20 +04:00
The Immortal
15bea251f3
Update Challenge/Hackmons Cup scripts
2016-11-19 14:11:14 +04:00
Ivo Julca
4a7b859128
Remove old megaevo decisions from queue on priority Pursuit
2016-11-19 02:54:53 -05:00
Guangcong Luo
b2393799c2
Suppress crash in mega evolution
2016-11-19 02:27:11 -05:00
Ivo Julca
78ab0bdf31
Implement Spectral Thief
2016-11-18 18:26:16 -05:00
Ivo Julca
c1b8aa52d2
Fix Z-Move single-use restriction
2016-11-18 18:26:16 -05:00
Ivo Julca
f2b5d74159
Store total damage across move hits as move.totalDamage
2016-11-18 13:55:57 -05:00
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