Commit Graph

1326 Commits

Author SHA1 Message Date
The Immortal
4af7b41247 Fix remaining Greninja issues 2016-12-01 01:09:05 +04:00
The Immortal
d7434ecf97 Random Battle improvements 2016-11-29 16:17:57 +04:00
The Immortal
33698f76bf Gen 6: Remove unneeded Greninja data 2016-11-29 16:17:57 +04:00
Ivo Julca
7d1ee5fecd Confusion still has a 50% self-hit chance
Hypothesis of chance=1/3 can be rejected at a 0.0005 significance level.
2016-11-27 19:11:58 -05:00
Ivo Julca
c3ddc324e0 Fix support of onTakeItem: false
Most onTakeItem checks were using an onTakeItem direct call anti-pattern,
which failed to account for the boolean case.
2016-11-26 03:34:41 -05:00
Marty-D
fe8fb30295 Implement new Stance Change order 2016-11-25 19:23:26 -05:00
Marty-D
dc90744aa7 Fix confusion Berries activation condition 2016-11-25 17:25:47 -05:00
Ivo Julca
318ca6ae9f Fix Destiny Bond 2016-11-25 15:38:25 -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
4e98fd0272 Berries that may confuse now heal 1/2 max HP 2016-11-25 15:11:02 -05:00
Ivo Julca
e45d4bbdac Fix turn order to account for abilities traced by Mega Evolutions 2016-11-24 22:44:27 -05:00
The Immortal
bebb4bca90 Fix Mix and Mega 2016-11-22 18:09:29 +04:00
The Immortal
3c0864a3df Random Battle updates 2016-11-21 02:50:26 +04:00
The Immortal
af54ac1db4 Move current randomSet script to gen 6
Before I start editing it for gen 7 stuff.
2016-11-20 16:26:45 +04:00
Ivo Julca
26f7d33e72 Remove Gen 7 abilities from Greninja and Zygarde Gen 6 data 2016-11-20 00:24:49 -05: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
The Immortal
8fb3602af4 Gen 6: Set Thousand Arrows/Waves as unreleased 2016-11-20 00:38:37 +04:00
Ivo Julca
4aaa3cb260 Move .templateRequiredItem to array everywhere 2016-11-19 15:23:42 -05:00
Marty-D
4cb097f228 Gen VI: Fix Dark Void 2016-11-19 14:42:10 -05:00
The Immortal
86556746e8 Gen 6: Remove unneeded mod data 2016-11-19 23:33:33 +04:00
The Immortal
302c0b3e12 Set OM mods to gen 6 2016-11-19 17:11:52 +04:00
The Immortal
838d047696 Update unreleased items 2016-11-19 15:12:59 +04:00
urkerab
973e686350 Tentative damage modifier changes on -ate and -ize abilities (#2894) 2016-11-18 23:21:45 -06:00
The Immortal
d43b50ce83 Update moves viability 2016-11-19 06:49:56 +04:00
Ivo Julca
ff6776074a Sync scripted mods with the battle engine 2016-11-18 19:31:38 -05:00
Ivo Julca
bf04094f08 Update BattlePokemon#formeChange to use Tools#spreadModify 2016-11-18 19:26:54 -05:00
Ivo Julca
5d04c4f2e0 King's Shield Atk drop now triggers even if immune 2016-11-18 12:48:50 -05:00
The Immortal
332ff1d49e Set Pichu-Spiky-eared to gen 4
And move eventOnly to the base data, for consistency.
2016-11-18 14:18:49 +04:00
Ivo Julca
c8308ccd89 Sheer Cold no longer affects Ice-type Pokémon 2016-11-18 01:53:24 -05:00
Ivo Julca
5f68ee5495 Misty Terrain blocks confusion 2016-11-18 01:18:03 -05:00
Ivo Julca
b2d2569c6e Destiny Bond may fail if used successively 2016-11-18 00:59:34 -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
The Immortal
1cc5b9279f Gen 6 mod: Add FormatsData 2016-11-18 02:18:22 +04:00
The Immortal
f4dc69acbd Gen 5 FormatsData: Only inherit those with events 2016-11-17 23:05:06 +04:00
Guangcong Luo
b734d2f1c3 Make gen 7 the default mod
This makes gen 7 the default mod, updates the tests to match, and fixes
the corresponding build error.

Note that this only changes the default Tools mod, the default Formats
mod is now gen6. gen7 must be specified by name in a format, for that
format to be a gen 7 format.
2016-11-17 12:27:46 -06:00
Marty-D
5da62651ce Implement more new stuff and remove some TODOs 2016-11-17 11:06:13 -06:00
The Immortal
b9da0c1a95 Gen 6: Remove unreleased hidden abilities
I don’t know if unreleased Pokemon (Floette-Eternal) should be removed
as well. There’s probably an argument that it should be usable in
custom game.
2016-11-17 11:06:13 -06:00
Marty-D
9ace6d2391 Add Soul Dew change 2016-11-17 11:06:13 -06:00
Marty-D
18270f72c4 Add burn damage change 2016-11-17 11:06:12 -06:00
Marty-D
84a6761a90 Revert Unaware change 2016-11-17 11:06:12 -06:00
Marty-D
83acbc578d Add preliminary Gen 7 changes 2016-11-17 11:06:12 -06:00
Guangcong Luo
71249f48fe Make Gen 3 inherit from Gen 4
Due to a quirk of history (namely, programmers having a poor
understanding of the mod inheritance system), Gen 3 inherited from
Gen 5 for a long time, resulting in a lot of duplicate code.

This commit changes up the inheritance system and removes some
duplicate code (specifically, statuses.js and moves.js besides
Metronome and Mirror Move which need more investigation), the rest is
reserved for a future commit.
2016-11-14 09:18:30 -07:00
Marty-D
5388cba493 Gen II: Fix Detect/Endure/Protect success chances 2016-11-01 21:13:11 -04:00
Quinton Lee
55fa6c630e Rulesets: standardize types and names (#2838)
Rules that affect validation are now typed ValidatorRule and rule
names are no longer affected by Tools.getFormat input.
2016-10-12 14:24:53 -05: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
Ben Davies
54d0ff203a Performance: replace direct references to arguments with rest parametres (#2818)
Replacing direct references to the arguments object of functions with rest
parametres prevents the function from being deoptimized while still allowing
use of arbitrary arguments. This may also fix some minor memory leaks related
to mishandling the arguments object.
2016-10-04 16:29:14 -07:00
Marty-D
25ff3aaadc Gen III: Update move descriptions 2016-09-28 16:18:58 -04:00
Marty-D
c3f24da150 Gen IV: Update move descriptions
Also removes unneeded Hidden Powers.
2016-09-26 17:06:08 -04:00
Marty-D
cd387d1847 Gen V, VI: Update several move descriptions
Also removes a handful of now-unnecessary base power callbacks from Gen
5.
2016-09-25 20:25:02 -04:00