Commit Graph

191 Commits

Author SHA1 Message Date
Guangcong Luo
d902f8df6d Sync learnsets 2013-12-20 16:08:02 -08:00
V4Victini
863bbb131c Fix legality check
Even in Gen 6, Level-up moves cannot be passed down to babies of male-only species
2013-12-03 00:54:49 -05:00
V4Victini
d76f3d1e9d Factor Ability Capsule into legality
Pokemon can have 3rd Gen moves with 4th Gen Abilities in Gen 6
2013-12-02 17:46:07 -05:00
V4Victini
c81b32d4b5 Moves unavailable in XY cannot be sketched. 2013-11-26 10:43:11 -05:00
V4Victini
1725c9dad3 Perish Song is illegal on Gastly in No Pokebank metas
Destiny Bond is fine, it is a level up move.
2013-11-23 17:14:11 -05:00
Guangcong Luo
33e1a1b4ac Changes to gen 6 legality checking
- We have a new format flag requirePentagon, which is a slightly less
  strict version of noPokebank that allows Pokebank breeding.
- Unreleased items and abilities are now considered entirely illegal,
  including in Pokebank.
2013-11-23 15:26:41 -06:00
V4Victini
5c0305daa9 "No Eggs" Egg Groups is now the "Undiscovered" Egg Group 2013-11-22 20:49:42 -05:00
The Immortal
0724a05469 Fix Pokemon with hidden abilities and Gen 4 only moves being allowed
Specifically, Prankster Murkrow with Defog
2013-11-21 22:36:08 +04:00
Slayer95
193a400650 Fix Sketch issues
Smeargle could learn Magikarp Revenge. Necturna could learn Struggle, Chatter and Magikarp Revenge
2013-11-17 03:24:39 -05:00
Guangcong Luo
57f4326fe5 Fix crash from invalid team data 2013-11-15 19:28:49 -08:00
Guangcong Luo
dad42857ba Better legality checker
We now show fewer and better error messages when a forme is selected
in the teambuilder.
2013-11-08 15:41:02 -08:00
Guangcong Luo
691985ae24 Fix learnset checker forme detection 2013-11-07 15:21:39 -08:00
Guangcong Luo
662599fb25 Fix learnset checking for Gourgeist 2013-11-07 14:22:59 -08:00
Guangcong Luo
7b0a747fb2 More efficient learnset checking 2013-11-03 22:27:03 -08:00
Guangcong Luo
4d448ed5f3 Code quality changes to mod loader 2013-11-03 14:28:09 -08:00
Slayer95
34361e25f6 Implement inherit from module feature for mods data
The base for inheritance of each mod should be specified in their scripts.js files as the property "inherit" of exports.BattleScripts.
If this property is omitted, it's assumed that any inheritance for the mod is relative to base data.
This intends to fix the current data for old generations, so that they inherit from Gen5, as originally.
(Per kotarou3's and Zarel's requests in #444 and #451.)
2013-11-03 16:37:34 -05:00
The Immortal
e172a896a3 Genderless Pokemon can pass down their HA in Gen 6
Relevant to Little Cup
2013-11-03 12:00:54 +04:00
Guangcong Luo
06c9652f71 Gen 6 doesn't have egg move incompatibilities 2013-11-02 18:50:41 -07:00
Guangcong Luo
dd37a4bb27 /g6learn command
Also fix ExtremeSpeed Dratini
2013-10-31 11:30:36 -07:00
Guangcong Luo
24e1bea29b Female/genderless pokemon can now pass egg moves
Also fix a bug with the egg move checker
2013-10-31 11:14:29 -07:00
Guangcong Luo
b8048881a8 ExtremeSpeed Dratini is illegal outside of Pokebank 2013-10-31 00:04:37 -07:00
Guangcong Luo
33fcd92fc3 Fix learnset compatibility checker
Assumptions about Pokemon that don't have real gen 6 movepools yet
are now made in learnset generator rather than compatibility checker.

This fixes a few problems where a Pokemon was assumed to be
transferred from gen 5 when it wasn't.
2013-10-29 22:34:38 -07:00
Guangcong Luo
c0a075c484 Better error message for moves that require Pokebank 2013-10-27 22:22:46 -07:00
Guangcong Luo
29f675052b Tentatively accept gen 5 level-up and TM movepools for noPokebank
True gen 6 level-up and TM movepools are unavailable for many pokemon,
so we will tentatively assume that gen 5 ones are still illegal.
2013-10-27 22:11:08 -07:00
Guangcong Luo
5baa18f33a Implement beta OU and Ubers ladders 2013-10-27 22:01:46 -07:00
Guangcong Luo
fa4c5fbbe5 Fix noPokebank learnset checking 2013-10-27 21:54:53 -07:00
Guangcong Luo
67cb149ded Implement Nickname Clause 2013-10-27 21:03:42 -07:00
The Immortal
0508f45906 Fix bug in set validator
This fixes Analytic Starmie with Ice Beam (or any "5M" move) being
disallowed
2013-10-25 01:02:11 +04:00
Guangcong Luo
304ad77011 Merge pull request #429 from TalkTakesTime/master
Fix STABmons
2013-10-24 00:19:16 -07:00
Guangcong Luo
3228b044f7 New system for unreleased pokemon: isUnreleased
isUnreleased is now a flag rather than a tier, so unreleased pokemon can
be tiered for Pokebank formats.
2013-10-24 00:15:11 -07:00
Ben F
a8e5c41eb9 Fix STABmons 2013-10-24 20:02:37 +13:00
Guangcong Luo
96d97ab3ad Support Gen 6 Pokebank/non-Pokebank in learnset validator
This removes the need for a Pokebank mod, which I'm not sure how it
worked in the first place, considering the learnset validator by
default considers it possible to transfer pokemon over.
2013-10-23 22:14:34 -07:00
Ben F
276443c8cd Add /ignore to list of shown commands in help 2013-10-23 15:07:19 +13:00
Guangcong Luo
3eec9e76cc Mega evolutions are only available in battle
This is tentative, since hackmons aren't possible in gen 6 yet
2013-10-19 16:43:46 -07:00
Guangcong Luo
31fd8ea76a Implement mega evolution 2013-10-19 16:08:54 -07:00
Ben F
5354618521 Fix for version-exclusive megas 2013-10-19 12:02:08 +13:00
Ben F
212a0ec37e Mega formes are now treated as Gen 6 2013-10-19 11:46:53 +13:00
The Immortal
3576508db4 Change "Dream World" to "hidden" abilities
- Removed dreamWorldRelease and added unreleasedHidden
- Replaced maleOnlyDreamWorld with maleOnlyHidden
- Replace 'DW' ability with 'H' ability
- Changed isDW variable to isHidden
2013-10-19 00:25:02 +04:00
The Immortal
1e9a80b04a Update checkLearnset for Gen 6 2013-10-13 15:04:48 +04:00
Guangcong Luo
e6d84336b1 Improvements to /data searching
The Levenshtein distance threshold for fuzzy matching is now
dynamic.

This prevents things such as any 3-or-fewer-letter search matching
'Muk'.
2013-09-13 10:01:44 -07:00
Quinella
3248e479f4 Changed searchByLevenshtein function name to dataSearch and made it more 'all-round'. Also added contributor to readme.md. 2013-09-09 02:35:44 +02:00
Quinella
bc0ac14486 Added an optional searchIn parameter to Tools.searchByLevenshtein
If you want to search through 'everything', omit it.
If you want to search through moves alone for example, provide ['Movedex'] as second parameter.
2013-09-08 21:02:33 +02:00
Quinella
6d8b566d44 Moved the levenshtein search to tools.js 2013-09-08 20:55:09 +02:00
Quinella
01091859cb Fixed style issues; removed whitespace on empty lines and moved levenshtein function to tools.js 2013-09-08 19:54:31 +02:00
Joimer
1b0895f231 Tools: Add Gen 6 automatic categorisation
In order to allow current Gen 6 OMs and ease the process, add the
numbering for gen 6.
2013-08-19 11:46:50 +02:00
Guangcong Luo
708cc3ae0b Formats overhaul
Formats are now stored by default in config/formats.js
2013-08-18 14:55:14 -07:00
Guangcong Luo
3e15406a39 canUseRandomTeam is now implied for randbat formats 2013-08-18 14:27:36 -07:00
小太
f2f973fe29 Obliterate trailing whitespace 2013-08-18 21:33:15 +10:00
Guangcong Luo
2e1ab04eb6 Workaround for Smeargle learnset checker
To do: Properly fix Sketch checking
2013-08-16 22:37:29 -07:00
Joimer
3f686d7d51 Implement STABmons using a Tools hack
Due to how validateSet and scopes work, STABmons needs either this 2 line hack or to copy basically all moveset check to formats, duplicating code, for it to work.
2013-08-01 13:56:35 +02:00