Commit Graph

209 Commits

Author SHA1 Message Date
Tyler Stark
0723abe4e0 Reverting some of the refactor 2014-02-09 23:48:57 -06:00
Tyler Stark
bff353cc58 Second Pass at cleaning up the code. These are pretty safe edits that include adding 0 to decimal values, fixing variables that are declared multiple times, and removing duplicate keys 2014-02-09 23:38:57 -06:00
Ivo Julca
0150143408 Fixes for type change
Fixes Trick-or-Treat and Forest´s Curse stacking.
Fixes Roost overriding other type changes when it ends.
Fixes Roost not suppressing Flying type adquired afterwards in the turn.
Fixes mons not adquiring Flying type when transforming into a roosted pokemon.
Fixes nature of types (added by Trick-or-Treat or Forest´s Curse) not being passed on use of Reflect Type or Transform.
2014-02-01 19:05:28 -05:00
Guangcong Luo
e2f82fa8f3 Rename data/formats.js -> data/rulesets.js 2014-01-09 19:37:04 -08:00
Guangcong Luo
a39fdd6006 Split off team validation to team-validator.js
This is the first step in a refactor to split team validation into
its own process.
2014-01-09 17:35:19 -08:00
Ivo Julca
88260165c5 Fix Gen 1 and 2 being unplayable
Do not cap EVs total for pokemon.
Also set abilities to None again
2014-01-09 15:21:57 -05:00
Ivo Julca
c10354578b Fix Flying Press and Freeze Dry
Items and abilities supposed to activate depending on effectiveness were not accounting for their effects
2014-01-08 19:45:22 -05:00
Guangcong Luo
9ad8ad2305 Don't allow megas to get around bans 2014-01-08 02:54:50 -08:00
The Immortal
8621bbee53 Event Pokemon can use Ability Capsule in Gen 6 2014-01-06 14:33:48 +04:00
Slayer95
4e10d4cf13 Update STABmons id for set validation 2014-01-03 19:43:50 -05:00
The Immortal
08bca77cf4 Allow CAP to have HMs 2013-12-31 14:10:41 +04:00
The Immortal
1d191ac926 Fix possible crash in validator
Pokemon that received evolutions in future gens.
2013-12-29 00:39:12 +04:00
The Immortal
bbdecc657e Update learnset checker
HMs can't be transferred. Gen 5 to 6 still needs to be tested.
2013-12-28 00:41:44 +04:00
Slayer95
bb5ce01269 Fix crash on validation of nicknamed pokemon 2013-12-27 12:49:03 -05:00
The Immortal
15079df1bd Update set validator again
Forgot about Ability Capsule
2013-12-27 19:32:00 +04:00
The Immortal
824467f9ea Update set validator
This prevents Pokemon with additional abilities being allowed with older
generation moves; such as Frisk Dusclops with 3rd, 4th or 5th gen tutor
moves
2013-12-27 17:34:22 +04:00
The Immortal
926eb400db Change pokebank incompatibility message
This problem only applies to VGC 2014 now
2013-12-27 12:04:47 +04:00
The Immortal
2606b21c7c Remove Pokebank tiers 2013-12-26 15:10:02 +04:00
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