Commit Graph

268 Commits

Author SHA1 Message Date
Marty-D
76da207659 Update Metronome again 2020-03-31 12:04:28 -04:00
Marty-D
87838fb207 Update Metronome 2020-03-30 12:12:22 -04:00
Marty-D
1488b63482 Update Copycat, Instruct, and Sleep Talk 2020-03-30 11:30:57 -04:00
The Immortal
de2d80663e Random Battle improvements 2020-03-29 02:36:41 +04:00
The Immortal
659a878e5d Random Battle updates 2020-03-27 22:58:10 +04:00
Kris Johnson
ea1b028950
Rename cosmeticFormeName to forme (#6492) 2020-03-26 18:13:31 +04:00
Kris Johnson
994fc60aed
Rename Template to Species (#6478) 2020-03-25 23:29:27 -07:00
The Immortal
6dc9cb5e4f Gen 7: Fix broken entries in Formats-Data 2020-03-22 05:06:18 +04:00
Marty-D
0af4a07da4 Descriptions: Update move disabling effects 2020-03-21 12:11:45 -04:00
Marty-D
ca91a54a91 Explicitly block Yawn's effect with Electric/Misty Terrain 2020-03-19 10:12:50 -04:00
The Immortal
d7348167a9 Formats-Data: Do not inherit in older gens
It was used to inherit `eventPokemon` so as to not have duplicated data. Event data is now in Learnsets so this inheriting is unneeded.
2020-03-19 16:59:11 +04:00
Christopher Monsanto
3dfa720113 Fix isNonstandard on Genesect formes 2020-03-18 22:53:42 -04:00
The Immortal
c09044a777 Move gen property to Pokedex 2020-03-18 23:09:45 +04:00
The Immortal
bbb4da0131 Refactor forme data 2020-03-18 15:17:55 +04:00
Kris Johnson
3e26318758
Refactor learnsets.js (#6466) 2020-03-18 00:59:29 -07:00
The Immortal
ffc88e833f Random Battle: Improve error handling 2020-03-17 14:23:38 +04:00
Kris Johnson
83ebdb27da
Add Dex#getOutOfBattleSpecies (#6463) 2020-03-16 20:31:38 +04:00
The Immortal
a61d7080e3 Fix usage of inheritsFrom 2020-03-10 21:31:06 +04:00
Guangcong Luo
64ff1da81f Refactor more things to use inheritsFrom 2020-03-10 09:59:36 -07:00
Kris Johnson
a5988318de
Update Knock Off description (#6438) 2020-03-10 11:49:35 +04:00
The Immortal
a931c13bda Fix 5cf40b239 2020-02-17 16:46:46 +04:00
The Immortal
5cf40b239d Mail does not exist in Sw/Sh
It doesn't work either if you try to hack it.
2020-02-17 16:38:20 +04:00
The Immortal
9e70a66f2d Power is unusable in Sw/Sh 2020-02-14 23:56:18 +04:00
Guangcong Luo
652c7163cf
Refactor queue to new BattleQueue class (#6358)
Previously, battle queue stuff was just strewn around `battle.ts`.
This gives it a new home: `battle-queue.ts`.

This was intended to make `battle.ts` slightly more tractable, although
the difference is so small that maybe I shouldn't bother. Oh, well,
every little bit helps.
2020-02-12 16:20:17 -08:00
Kris Johnson
92c7d377a7
Add Pokemon Home support (#6349)
Co-authored-by: The Immortal <the_immortal123@live.com>
2020-02-12 14:54:55 +04:00
The Immortal
f24df5dd58 Correct Light of Ruin data 2020-02-12 14:27:45 +04:00
Guangcong Luo
55cbc52bba Fix bugs with secondary/ability order
Fixes #6346

The `AfterDamage` event has been replaced with `DamagingHit`, which
which happens for damaging moves after secondaries.

The `AfterHit` event has also been moved after `DamagingHit`, to make
sure Knock Off still procs after Rocky Helmet.

`AfterHit` is no longer a valid event on `secondary` and `self` blocks,
because it's meaningless in those blocks, anyway. All `self.onAfterHit`
and `secondary.onAfterHit` handlers have been moved to `onHit`, which
should have the same timing in practice.
2020-02-08 08:07:39 -08:00
The Immortal
e67a55d7ad Macho Brace is available in Sw/Sh 2020-02-07 14:21:36 +04:00
QuiteQuiet
211cefb262
Fix Healing Wish for Gen 8 (#6296)
- Healing Wish is not consumed if the Pokemon switching in
  has full health and no status condition.
- Being statused with full health will consume the Healing Wish.
- It does not trigger on damage after switching in.
- The effect will be consumed if an injured Pokemon is swapped
  into a slot with an active Healing Wish by Ally Switch.
2020-02-01 22:04:21 -08:00
Guangcong Luo
0e9e68db71 Fix King's Shield shortDesc 2020-01-27 19:05:49 -08:00
Guangcong Luo
4ff0f0bf2e Update shortDescs for "damaging attacks"
Moves like King's Shield, Obstruct, and Mat Block only protect against
non-Status moves; this is now mentioned in shortDescs.
2020-01-27 18:26:57 -08:00
The Immortal
38671c67c7 Doubles: Add Gravity Sleep Clause
Closes #6299
2020-01-22 07:28:40 +04:00
The Immortal
8f7df1e5c4 Set Genesect drives as past items 2020-01-18 14:17:12 +04:00
The Immortal
38053c0168 Random Battle improvements 2020-01-17 14:05:15 +04:00
The Immortal
d70af8e12a Update Slowpoke data 2020-01-09 20:43:58 +04:00
The Immortal
491e0575e0 Random Battle updates 2020-01-07 22:07:09 +04:00
The Immortal
6b2fb44abb Set unavailable fossils as "Past" items 2020-01-07 04:17:29 +04:00
The Immortal
0edf3aae55 Correct Zippy Zap effects 2020-01-07 03:56:27 +04:00
The Immortal
cee7c21bc1 Fix Psyduck events 2020-01-07 00:43:59 +04:00
Jacob Ellis Duncan
766dcbc3b4 Update item descriptions (#6211) 2020-01-06 12:00:20 -05:00
Guangcong Luo
138fccbaa8 Consolidate more rules into Standard
- `Obtainable` and `Team Preview` are now part of `Standard`

- `minSourceGen: 8` is now a part of `-Unreleased` (which is part of
  `Obtainable`) in Gen 8. Instead, it's NatDex that overrides it with
	`minSourceGen: 1`. This allows `!Standard, Standard NatDex` and
	`!Standard NatDex, Standard` to work as intended.

- Duplicate rules are now checked for (does not apply to subrules, so
  multiple inheritance is still possible)

- It is now possible to inherit `minSourceGen` from rules.
2020-01-03 23:42:48 -05:00
The Immortal
be24a4bdf2 Random Battle updates 2020-01-02 02:56:02 +04:00
Kris Johnson
6a3945bb18 Custap Berry is released in ORAS and USUM (#6226) 2019-12-28 15:41:07 +04:00
urkerab
7152b42daf Calculate fractional priority once per turn (#6224) 2019-12-27 12:42:34 +09:00
The Immortal
a1b502f901 Random Battle improvements 2019-12-25 05:58:16 +04:00
The Immortal
f62ff19e8a Improve validation for unobtainable Pokemon
This merges the Glitch and Pokestar tags into a new Unobtainable tag that defines Pokemon that are only obtainable through hacking (such as Floette-Eternal and Missingno.). These Pokemon are legal in Hackmons of their specific generation only. Custom is used in future gens instead of Past because of National Dex legality.
2019-12-25 00:35:39 +04:00
The Immortal
5bb8dddad8 Delibird's hidden ability is released 2019-12-20 06:23:53 +04:00
Kris Johnson
23fbcf747b Update the LGPE moves (#6178) 2019-12-16 05:50:31 +04:00
Kris Johnson
cb83dda418 Update Utility Umbrella (#6127) 2019-12-13 00:30:57 +09:00
Guangcong Luo
a062a6c96e Fix Custap Berry 2019-12-12 18:23:52 +09:00
The Immortal
b2c5b31e1d Random Battle updates 2019-12-12 04:43:31 +04:00
Guangcong Luo
3b86164a77 Fix Quick Claw 2019-12-11 18:12:54 +09:00
The Immortal
7dfc381e9b Leaf Blade + Sucker Punch Shiftry is legal 2019-12-09 05:16:46 +04:00
The Immortal
29fdcc42cf Update Electric/Grassy/Psychic terrains 2019-12-08 22:35:07 +04:00
ZardMX
3cdebcc3a6 Add Obstruct in list of protection moves (#6124) 2019-12-04 10:32:22 -05:00
HoeenHero
fe6ee1339f Sort battle actions by order instead of priority (#6143)
This fixes the issues with priority moves in gen 8.
2019-12-04 12:56:50 +09:00
Guangcong Luo
9b943fb62f Fix Dynamax stat handling
We now track `baseMaxhp`, the pre-Dynamax max HP. We also have a new
function `getUndynamaxedHP` for use by moves that use it (famously,
Endeavor).

- `baseStoredStats` is unused outside of the mouseover stats display.
  I updated its implementation to reflect this.

- Power Construct doesn't have a defined behavior during Dynamax. I
  ended up implementing an approximation of what it should probably do.

- Endeavor, Pain Split, Super Fang, and Nature's Madness now work on
  undynamaxed HP.

- Moves that deal or heal percentage damage now do it based on
  undynamaxed max HP, other than G-Max Finale.

Fixes #6131

Fixes #6087
2019-12-04 09:25:46 +09:00
The Immortal
a133a5b28b Fix 4b324e536
This reverts the other changes that were related to that commit.
2019-12-02 18:13:08 +04:00
Guangcong Luo
24fe6b8781 Fix Mago/Wiki Berry descriptions 2019-12-02 17:25:40 +09:00
Guangcong Luo
4b324e536e Revert "Pokedex: Update formes"
This reverts commit 302f391381.

Fixes a bug in 77cca394bd
2019-12-02 13:56:54 +09:00
The Immortal
6055be5624 Random Battle improvements 2019-12-01 21:45:30 +04:00
420Blazeitt
f64bd4e9d3 Defog now removes terrains and G-Max Steelsurge (#6126) 2019-12-01 10:18:14 +13:00
Kris Johnson
9b6026af64 Update egg groups for Hawlucha, Bermite, Avalugg, Noibat, and Noivern (#6122) 2019-11-30 19:50:23 +13:00
Guangcong Luo
903c297b39 Fix Disguise descriptions
Fixes #6064
2019-11-29 10:06:20 +13:00
Spandan Punwatkar
3deb1c69c4 Dexsearch: Allow searching national dex (#6106) 2019-11-28 12:40:30 -05:00
The Immortal
224465f6f7 Remove Moody Clause from Standard ruleset 2019-11-28 02:52:39 +04:00
HoeenHero
661f52f2c3 Fix crash with Disguise in Gen 7 2019-11-27 08:35:51 -05:00
The Immortal
36b0e6e6a5 Random Battle improvements 2019-11-27 01:57:43 +04:00
The Immortal
302f391381 Pokedex: Update formes
- Remove prevo from in-battle formes
- Rename Darmanitan-Zen-Galar to Darmanitan-Galar-Zen and update the baseSpecies (this fixes its validation in gen 8 as well)
- Rename Mimikyu-Busted-Totem to Mimikyu-Totem-Busted and change its baseSpecies
2019-11-26 22:56:35 +04:00
HoeenHero
c0c9bca26b Mark various berries as unreleased in Gen 8 2019-11-26 12:55:49 -05:00
The Immortal
0f1d2b0b5c
Allow Stick in past gens 2019-11-24 06:29:14 +04:00
Christopher Monsanto
f8fb992888
Restore Searing Shot to past gens (#6058) 2019-11-23 10:18:15 -05:00
The Immortal
f4234fd1ff Update unreleased hidden abilities 2019-11-23 18:54:18 +04:00
The Immortal
030a4f8394 Mr. Mime is available 2019-11-23 04:11:34 +04:00
The Immortal
492f5ac7d5 Remove Moody Clause from Doubles ruleset 2019-11-22 22:38:57 +04:00
The Immortal
0805535b40 Flag rest of the unusable moves as Past 2019-11-22 01:07:05 +04:00
The Immortal
bb370216e0 Set Gems to Past items 2019-11-20 23:23:05 +04:00
The Immortal
1aa1cc3042 Set Castform/Meloetta/Minior formes to Past 2019-11-20 16:01:06 +04:00
The Immortal
90e9d5bb56 Revert "Alolan Vulpix/Diglett are released in Gen 8 (#6035)"
And also part of de147756d that is not necessary.
2019-11-20 15:19:14 +04:00
Kris Johnson
72272356b8 Alolan Vulpix/Diglett are released in Gen 8 (#6035) 2019-11-20 22:48:12 +13:00
Kris Johnson
de147756d7 Mark Alolan formes as Unreleased (#6034) 2019-11-20 22:28:20 +13:00
Guangcong Luo
4a3fd8717e Update Moody
Fixes #6027
2019-11-20 21:28:50 +13:00
The Immortal
068e5e7e8c Fix Sylveon events 2019-11-19 22:39:48 +04:00
The Immortal
ee5103dbf1 Set Blue/Red Orbs to Past items 2019-11-19 21:47:43 +04:00
The Immortal
d3dee35921 Revert egg groups addition for Megas
They don't exist so they don't have these updated egg groups that the base has.
2019-11-19 20:49:58 +04:00
ParthMan
eb97124c36 Update Egg Groups (Trapinch, Ralts lines) (#6017) 2019-11-19 19:56:38 +04:00
Parth Mane
95eace47f9 Update Intimidate Interactions (#6006) 2019-11-19 19:34:07 +04:00
Christopher Monsanto
ccd0e34c33 Fix previous gen Gumshoos forme (#6014) 2019-11-19 17:31:54 +04:00
The Immortal
d9a617b0e9 Correct Disguise descs 2019-11-19 00:14:36 +04:00
The Immortal
eb905cbe92 Implement Disguise damage 2019-11-18 23:58:00 +04:00
420Blazeitt
77e4d694b9 Disallow Vivillon formes in gen 8 (#5980) 2019-11-17 17:53:29 +04:00
The Immortal
f93dbf3948 Clean up previous commit
The previous commit added `isNonstandard` where is wasn't required.
2019-11-17 09:44:23 +04:00
420Blazeitt
d9b07bf848 Disallow Arceus, Keldeo, and genesect formes to be used in gen 8 (#5978) 2019-11-16 22:59:38 -05:00
The Immortal
a6bd62a51b Remove unneeded isUnreleased flags for LGPE moves 2019-11-17 05:33:37 +04:00
The Immortal
eba141fb94 Correct Magearna-Original tier 2019-11-17 01:05:48 +04:00
The Immortal
48eb3273fb Fix random6Pokemon crash 2019-11-16 23:44:08 +04:00
The Immortal
0ff1aa7e1c Fix Manectric events 2019-11-16 23:16:15 +04:00
The Immortal
c1c9f9c376 Gen 7: Fix items mod
Sorted it as well.
2019-11-16 22:52:22 +04:00
Guangcong Luo
cc84d1c4f1 Fix some Z crystals being allowed 2019-11-17 07:26:10 +13:00
Guangcong Luo
0bb2e58efd Fix Dynamax move base power
Dynamax moves now have the correct base power, and now correctly only
deal 25% usual damage against Protect.
2019-11-17 06:32:17 +13:00
asgdf
f498a03da6 Fix Pokemon in pastgen randbats sometimes having no moves (#5970) 2019-11-16 21:25:41 +04:00
Guangcong Luo
04799f5c1e Restrict Z-crystals and mega stones to Gen 7 2019-11-16 20:00:53 +13:00
The Immortal
de7c22bc86 Allow Double Iron Bash in Hackmons 2019-11-16 09:13:58 +04:00
The Immortal
526ad4ce3a Past gens: Fix Jirachi legality 2019-11-16 08:59:38 +04:00
Kris Johnson
d73f05dc0c Check if the target is Dynamaxed for weight moves (#5957) 2019-11-15 23:22:24 -05:00
Guangcong Luo
10062ece4f Fix Koffing/Weezing Gen 7 Abilities
PS apparently doesn't have gen-accurate Ability data for Pokémon in
Gen 3 that gained Abilities between Gen 3 and Gen 4 (like Pidgeot
still has Tangled Feet in Gen 3), but that will have to be left for
a future commit.
2019-11-16 14:39:14 +13:00
The Immortal
bb25774752 Update unreleased hidden abilities 2019-11-16 02:34:17 +04:00
The Immortal
ddf510c2a9 Random Battle updates 2019-11-16 01:00:19 +04:00
The Immortal
99a1cc220a Update Pikachu formes 2019-11-16 00:06:33 +04:00
Guangcong Luo
801af59b98 Fix remaining build errors
- Centiskorch was misspelled in formats-data, causing a crash in the
  egg validator

- A few validation errors were due to Gen 6 not inheriting from Gen 7,
  Gen 7 not having a scripts file, and Gen 8 having a gen of 7

- Intimidate (Gen 7) wasn't inheriting from Intimidate (Gen 8), giving
  it no name, causing a few validation errors

  (Technically not a build error, but I also added Keen Eye to the list
  of Intimidate immunities, as reported by SadisticMystic.)

- A lot of tests relied on Teleport always failing; these have been
  switched to Gen 7 or swapped Teleport for Celebrate

- Inverse Mod suddenly stopped working; its implementation was a huge
  hack and I can't figure out what went wrong, so I've switched it to
	using the same system the other mod tests use. It's still a huge
	hack, but I don't have the free time to fix it right now.
2019-11-16 06:08:48 +13:00
The Immortal
68d73b77f0 Update new ability ratings 2019-11-15 20:15:23 +04:00
The Immortal
85356c3a43 Clean up data
- Add missing flags to FormatsData
- Remove unnecessary flags and data
- Remove unreleased abilities in past gens
2019-11-15 15:40:08 +04:00
The Immortal
1caf446e58 Move RandomTeams to gen 7 mod 2019-11-15 15:36:22 +04:00
Kris Johnson
f91c7471c5 Add Gen 8 Moves 2019-11-15 22:02:24 +13:00
urkerab
e7aee8d9cc Some fixes to Gen 7 formats data 2019-11-15 22:02:24 +13:00
420Blazeitt
723e256aec Add Gen 8 Items 2019-11-15 22:02:15 +13:00
HoeenHero
5144fc32d7 Add Gen 8 Abilities 2019-11-15 22:01:54 +13:00
Kris Johnson
46ad0bccd7 Add Gen 8 Pokemon 2019-11-15 22:01:36 +13:00