Commit Graph

3407 Commits

Author SHA1 Message Date
Kevin Lau
e6f0fb9760 Random Battle: Fix issues with deprecated 'ate' counter 2015-11-23 16:45:02 -08:00
Kevin Lau
6bcee1926d Random Battle: Update Gligar, Mega Charizard, Pyroar, and more
Gligar always gets Immunity.

Reject Solar Power on Mega Charizard (both formes)

Update move selection to ensure Fire Pokemon with Drought/Sunny Day get a
Fire move.
2015-11-23 16:22:34 -08:00
Kevin Lau
d8deac0e58 Random Battle Refactor: Track damaging moves of each type
Adds counters for each type in queryMoves. Many updates to ability checks
were also needed.

Also, update Random Double Battles to use teamDetails like Singles.
2015-11-23 16:22:32 -08:00
Marty-D
0d37b7946d Seasonal: Fix custom movesets
Merge conflicts were being resolved in the wrong direction, giving all Pokemon their normal Random Battle movepools.
2015-11-22 21:46:14 -05:00
Marty-D
b221aa5cb4 Stop running Pursuit if the user has fainted 2015-11-22 18:00:06 -05:00
Konrad Borowski
e7d45f4b07 Add missing forme aliases: Gourgeist and Megas
Closes #2132
2015-11-22 04:42:13 -05:00
Ivo Julca
f504765852 Automatically parse aliases for Mega/Primal formes
Mega-Species and M-Species are now equivalent to Species-Mega.
2015-11-21 02:40:06 -05:00
Marty-D
091fffee59 Fix Air Balloon showing during Gravity 2015-11-20 12:19:34 -05:00
The Immortal
06fe3f1681 Revert 629f6f381a
Interacts badly with Arena Trap.
2015-11-18 22:22:34 +04:00
The Immortal
629f6f381a Add Levitate activation 2015-11-18 20:10:42 +04:00
Ivo Julca
52f1d43d3d Battle Factory: do not read Pokémon flags
They have been unused for a while.
2015-11-17 21:47:24 -05:00
Kevin Lau
53032b2851 Random Battle: Don't count weak moves for Life Orb item checks
By checking the damagingMoves index length instead of the number of
Physical and Special moves, it not only ensures no Life Orb for Pokemon
with Rapid Spin, but also Nuzzle (such as Pachirisu) and any other
potential cases that have been missed.
2015-11-17 11:56:51 -08:00
Marty-D
81116929d4 Fix Intimidate message on substitutes 2015-11-17 11:06:28 -05:00
The Immortal
5c503832b6 PU is having a suspect test 2015-11-16 17:28:16 +04:00
Guangcong Luo
435a283cd8 Set Abomasnow's tier to RU instead of (RU) 2015-11-16 00:53:07 -05:00
Marty-D
a8822423e8 Fix Gooey activation 2015-11-15 21:05:07 -05:00
The Immortal
a839d8942b Add Tyranitar and Zygarde events 2015-11-15 22:56:20 +04:00
The Immortal
5831ffc8f1 Move Linoone to BL4 2015-11-14 16:27:29 +04:00
The Immortal
3af21a71f2 Random Battle: Prevent multiple Fire/Poison moves 2015-11-13 23:32:10 +04:00
The Immortal
5812136ddf Random Battle updates
- Add Knock Off to Watchog
- Prevent Ice Shard as the only STAB
- Prevent Superpower with RestTalk
- Only allow Endeavor on leads

(Fixes #2261)
2015-11-12 23:26:04 +04:00
Ivo Julca
4410843e5a Unhardcode alternate forme handling in random team generators
- Use the recently added `battleOnly` template property to handle formes not directly allowed in-battle.
- Implement utility method `checkBattleForme` to unify handling of Mega and Primal formes.
2015-11-11 20:28:13 -05:00
The Immortal
a52d655e07 Random Battle: Prevent U-turn as the only STAB 2015-11-12 02:09:46 +04:00
The Immortal
65dfd4ee27 Random Battle: Improve Heliolisk
Fixes #2259.

And removed an unnecessary check for Forecast as the Castforms have their own sets now.
2015-11-11 23:47:35 +04:00
Ivo Julca
e985c2a7c6 Properly iterate moves in OHKO Clause 2015-11-08 22:19:46 -05:00
Ivo Julca
8619ba2022 Turn on strict mode globally for real 2015-11-08 15:38:15 -05:00
Guangcong Luo
ded9f1cd5d Fix duplicate cases in random set generators 2015-11-07 23:12:19 -06:00
Ivo Julca
04c64c143e Cleanup: remove several unused variables 2015-11-07 17:34:21 -05:00
Ivo Julca
90973d5c0c Style fixes
- Cut down excessive spacing
- Add braces to missing conditionals
2015-11-07 17:08:09 -05:00
Ivo Julca
2c2a3bdf58 Fix misplaced cases in random sets generators 2015-11-07 16:50:51 -05:00
Guangcong Luo
52dece0d09 Merge pull request #2255 from Zarel/block-bindings
Use strict mode and let and const instead of var
2015-11-06 22:42:32 -06:00
Marty-D
c4b4fe06ef Learnsets: Mewtwo learns Dive in ORAS 2015-11-06 22:41:19 -05:00
Ivo Julca
38eb5d373d Lint: fix variable name collisions in data 2015-11-06 22:31:36 -05:00
Ivo Julca
0479d2b729 Clean up handling of variable bindings in switch statements 2015-11-06 21:58:36 -05:00
Juanma Serrano
c4ac8d6e2f Use strict mode and let and const instead of var
This commit also fixes some duplicated variable declarations.
2015-11-06 21:56:52 -05:00
Ivo Julca
ef4963e030 Battle Factory: PU is now playable 2015-11-06 01:00:43 -05:00
The Immortal
ef4e63b024 Add shiny Yveltal event 2015-11-05 20:28:47 +04:00
The Immortal
7b625b7380 Random Battle: Update levels for megas without stones 2015-11-05 03:18:43 +04:00
Marty-D
f2191c156c Add Zororark event 2015-11-03 21:55:21 -05:00
Ivo Julca
71fa5e5c4a Battle Factory: tier shift update
Granbull promoted to RU.
2015-11-03 21:02:18 -05:00
Juanma Serrano
41167748b6 Seasonal: Keep naming convention for team generator
Seasonal team generators all should be randomSeasonalNameTeam.
2015-11-04 01:18:23 +01:00
The Immortal
4b26f16e57 November tiers update 2015-11-03 23:04:41 +04:00
Ivo Julca
99ac2cad62 Inheritance: work around overly strict Pokémon ruleset using format flags
This change also allows to
- Fix inheritance from Giratina-Origin.
- Remove set cloning for good.
2015-11-02 21:37:10 -05:00
Ivo Julca
6742c1e2a6 Fix Seasonal corrupting randbats moves 2015-11-02 07:53:47 -05:00
Juanma Serrano
22d6f81294 Merge pull request #2201 from ascriptmaster/seasonal
Implement November Seasonal, Super Squad Showdown
2015-11-02 08:16:13 +01:00
Guangcong Luo
fa7263eacd Fix Trick with one item holder 2015-11-01 19:44:11 -05:00
Ivo Julca
0e47aab76b Add new OM of the Month
Inheritance`s implementation rewritten from scratch and updated.
Leaders`s Choice: Same Type Stealth Rock
2015-11-01 19:11:02 -05:00
The Immortal
11fd83d7f8 Random Battle: Move and Item updates
- Prevent Hidden Power as the only STAB on dual-typed Pokemon
- Prevent U-turn and Volt Switch with Baton Pass
- Prevent Life Orb on Forretress
2015-11-02 01:31:47 +04:00
Kevin Lau
a38aa59eaa Implement November/December Seasonal, Super Squad Showdown 2015-10-29 17:15:43 -07:00
The Immortal
57086e015e Add Xerneas event 2015-10-29 16:44:46 +04:00
Kevin Lau
68412c989b Random Battle: Update Flareon
Wish/Protect isn't very useful when it needs Guts.
2015-10-28 15:30:08 -07:00