Commit Graph

511 Commits

Author SHA1 Message Date
The Immortal
85f7d4c172 Random Battle: Reject Explosion with Wish
Affects Lickilicky.
2015-02-15 15:43:53 +04:00
Ivo Julca
b810465c97 Sync parameters for randomSet functions 2015-02-15 01:05:03 -05:00
Ivo Julca
1deedc5952 Improve performance and debuggability of random team makers
- 30% more op/s for randomTeam, randomDoublesTeam and randomCCTeam
- 300% more op/s for randomHackmonsCCTeam
- Implement helper method `sampleNoReplace`: takes an array parameter, removes a random element and returns it.
- Random team makers now follow the game RNG. Therefore, it's now possible to reconstruct the teambuilding process for bad sets, given that the starting seed is known.
2015-02-14 23:22:27 -05:00
The Immortal
e7c74ca15f Random Battle: Fix Arceus having horrible sets 2015-02-15 01:56:45 +04:00
The Immortal
ab07e9b7a5 Random Battle updates
Went through all fully-evolved Pokemon and updated their moves. Also
removed illegal moves on several Pokemon...

- Added Superpower to SetupException
- Reject Water Pulse with Scald
- Reject Acrobatics with Hurricane
- Prevent Focus Blast and Superpower together
- Reject Physical moves with Acid Spray (only affects Eelektross)
- Do not reject Baton Pass with Protect
- Reject Healing Wish with setup
- Reject Hydro Pump with RestTalk
- Prevent Precipice Blades with Earthquake
2015-02-15 01:40:57 +04:00
The Immortal
1a76c6001b Random Battle: Reject Hidden Power as the only damaging move
It is only acceptable with STAB, such as Unown or Lunatone.
2015-02-13 16:39:25 +04:00
The Immortal
95d9df4611 Random Battle changes
Fixes #1524
- Modify Lumineon's moves; it is far too weak for Hidden Power to be
useful
- Add 5a131be906 to singles like I
originally meant to
2015-02-13 13:40:23 +04:00
The Immortal
5a131be906 Random Battle: Count Low Kick as a Technician move
Specifically affects Ambipom, who prefers Technician over Skill Link if
it doesn't have any multi-hit moves and has Low Kick.
2015-02-13 04:23:19 +04:00
Kevin Lau
f83bec30eb Random Battle: Improve Hidden Power checks
- In accepting Shadow Ball + HP Fighting, ensure that it's HP Fighting
  (relevant for Reuniclus, Chandelure, and Sylveon, which have Hidden
  Power that aren't Fighting)
- If Hidden Power changes the IVs but is later removed by another
  processing cycle, reset the IVs to 31 all
2015-02-12 16:10:41 -08:00
The Immortal
1087e1d3ee Random Battle: Fix Hidden Power check 2015-02-13 03:08:18 +04:00
The Immortal
85b0179d7b Random Battle changes
- Shadow Ball + HP Fighting is an acceptable combination with setup
- Slightly lower Regigigas' level
2015-02-13 00:06:26 +04:00
The Immortal
44478cb429 More Random Battle updates
- Fix multiple Flare Blitz cases
- Reject Substitute with Draco Meteor
2015-02-12 03:27:57 +04:00
The Immortal
496778bad5 Random Battle: Update items
- Add more cases for Leftovers
- Increase priority for Lum Berry with setup and Outrage
2015-02-12 03:10:05 +04:00
The Immortal
9447b46709 Improve Random Battle item selection
- Removed old check for "bulky" Pokemon as it would give Leftovers to
Pokemon that would prefer Life Orb or even Assault Vest. For example,
Kyurem-White and Goodra, respectively.
- If the Pokemon has three attacking moves, give Life Orb to those with
either setup or a recovery move, and give Leftovers to everything else.
2015-02-12 02:10:08 +04:00
The Immortal
4b2e43ce47 Random Battle: Reject Overheat with Lava Plume 2015-02-12 00:08:03 +04:00
The Immortal
56cf5d2257 Random Battle: Increase Altaria's level 2015-02-11 23:43:44 +04:00
The Immortal
e56dcd070c Random Battle updates
- Give Keldeo HP Flying instead of HP Ghost
- Reject Hidden Power if the Pokemon has a special setup move and only
one other special attack
- Dark/Fighting is resisted by Fairy this generation and isn't a
"perfect" combination anymore
2015-02-11 20:43:00 +04:00
The Immortal
9624888b79 Update Random Battle levels
Added AG and removed Mega Gengar custom level.
2015-02-10 16:18:18 +04:00
Kevin Lau
9921f2524b Random Doubles Battle Update
- Remove Feint from Pikachu/Raichu
- Replace Rock Blast with Rock Slide on Golem line
- Add Surf to Octillery
- Reject Strong Jaw without bite moves
- Update Iron Fist check to use the punch flag
- Give preference to Rock Slide over Head Smash
- Give preference to Discharge over Thunderbolt and Electroweb
2015-02-09 11:46:22 -08:00
The Immortal
ed3307a1af Update Random Battle
- Modify Tyrantrum's moves
- Add bite moves counter for Strong Jaw
- Use punch flag for ironfist counter
- Give preference to Stone Edge over Head Smash
2015-02-09 22:44:13 +04:00
Juanma Serrano
027357076b Merge pull request #1515 from ascriptmaster/seasonal
Seasonal: Remove Baton Pass
2015-02-09 09:17:14 +01:00
Kevin Lau
eecb0c80b2 Seasonal: Remove Baton Pass
With the way the Han Chinese side's morale system works, Baton Pass is
broken at high morale.
2015-02-08 15:59:55 -08:00
The Immortal
3a8e7c2613 Random Battle: Reject Unburden for high base speed Pokemon
Specifically affects Accelgor, who should never be using Unburden.
2015-02-09 02:02:22 +04:00
Juanma Serrano
7990e0a5f5 Merge pull request #1512 from ascriptmaster/seasonal
Seasonal: Nerf Han Chinese Side, Flavor Changes
2015-02-08 22:44:18 +01:00
The Immortal
4cfb2894ca Random Battle: Improve Mega Altaria 2015-02-08 20:36:13 +04:00
Kevin Lau
a1a86a4454 Seasonal: Nerf Han Chinese Side, Flavor Changes
Mechanics Changes:
- Fire Rocket does less damage, cannot crit.
- Fire Rocket is no longer a bullet move (for Chesnaught)
- Only Li Shang can Train Recruits.
- Recruits start with lowered defenses as well.
- Edit Mushu's movepool.

Flavor Changes:
- Train Recruits now uses Bulk Up's animation.
- Fire Rocket now uses Eruption's animation. Backfires cause the animation
  to strike the user instead!
- Use Searing Shot as Fire Rocket instead of Octazooka.
2015-02-08 00:54:54 -08:00
The Immortal
bb4579545b Random Battle updates
- Modify moves
- Make sure Mega Gardevoir has a Normal move
- Reject Thunder Wave with Gyro Ball
2015-02-06 14:37:06 +04:00
Kevin Lau
0d229a88e5 Random Battle: Diversify Xerneas' Moveset
Also added checks to accommodate for the fact that Xerneas is no longer
guaranteed to have Geomancy, and only lower its level if it has Geomancy.
2015-02-05 17:47:59 -08:00
Guangcong Luo
956566f856 Merge pull request #1502 from Joimer/UnawareFix
Fix Unaware in Doubles and refactor stat ignoring abilities
2015-02-05 11:59:21 -06:00
Juanma Serrano
64b2246260 Fix Unaware in Doubles and refactor stat ignoring abilities
Unaware currently doesn't work because the ModifyMove event is fired on the move before each target is caculated in doubles and triples.
This means that the ModifyMove event should be fired for each target and the move not modified unless it fits the attacker-target.
It's easier and less expensive to use an ability property to check on attacker/target than to fire events.
This fixes Unaware in doubles/triples.
It takes account interaction with Mold Breaker, Gastro Acid, and other ability supressers.
2015-02-05 10:38:17 +01:00
Juanma Serrano
5dda5b88e2 Merge pull request #1504 from ascriptmaster/seasonal
Seasonal: Implement February Seasonal: Han vs Hun
2015-02-05 09:17:54 +01:00
Kevin Lau
70bf8eb547 Seasonal: Implement February Seasonal: Han vs Hun
Seasonal is based on Mulan, in honor of Chinese New Year.

General Shang must defeat the Huns, but his new recruits are weak! Over
time, however, they will get stronger over time by training (just like the
movie, they train during I'll Make A Man Out Of You.) Singing will also
make them train faster.

The Han Chinese also have powerful rockets at their disposal (select
Octazooka in battle). However, the rockets sometimes backfire on new
recruits, but as they train the chance of backfire goes down.
2015-02-04 19:45:23 -08:00
The Immortal
c224668a9c Random Battle: Make sure Mega Salamence has a Normal move
Also, the moves array contains ids already.
2015-02-04 21:57:27 +04:00
The Immortal
b3a3228f2a Random Battle: Remove Medicham's custom level 2015-02-03 23:26:29 +04:00
Kevin Lau
60f8d8143a Seasonal: Retire Spacetime Funtimes
January is over, so the Seasonal must pass.
2015-02-03 02:59:42 -08:00
Kevin Lau
7fb61bf240 Double Random Battle: Reject Wide Guard with Protect 2015-02-02 14:37:09 -08:00
Kevin Lau
b5dac325a8 Random Battle: Reject Serene Grace on Blissey and Chansey 2015-02-02 09:14:27 -08:00
The Immortal
46ef95c615 Random Battle: Fix -ate ability check 2015-02-01 23:55:50 +04:00
The Immortal
cf10105824 Random Battle: Reject -ate abilities with no Normal moves 2015-02-01 22:17:47 +04:00
Guangcong Luo
cb6949d49d Merge pull request #1493 from ascriptmaster/randoms
Random Battle: Reject Aurorus Snow Warning with Hyper Voice
2015-02-01 12:07:59 -06:00
The Immortal
95be15b2d6 Random Battle: Fix Serene Grace being on Blissey/Chansey 2015-02-01 17:38:28 +04:00
ascriptmaster
2219dd099b Random Battle: Reject Aurorus Snow Warning with Hyper Voice
Added a counter that tracks Normal damaging moves for purposes of -ate
Abilities, in case it becomes important later. This counter also
future-proofs Aurorus in case it receives other viable Normal attacks
later.
2015-02-01 01:32:21 -08:00
Guangcong Luo
072d37d6f7 Merge pull request #1491 from ascriptmaster/randoms
Random Battle Updates
2015-01-31 21:17:54 -06:00
Kevin Lau
b2cc14f5e2 Random Battle: Reject Quick Attack with Feint 2015-01-31 14:30:23 -08:00
Guangcong Luo
43ed3cbbbf Merge pull request #1487 from Slayer95/mega-evolution
Pokémon cannot megaevolve to themselves
2015-01-30 20:44:54 -06:00
Ivo Julca
6607d1c53b Pokémon cannot megaevolve to themselves
- Rename randbats helper function `canMegaEvo` to `hasMegaEvo`.
- Move duplicate mega evolution possibility checks from `runMegaEvo` and BattlePokemon constructor to `canMegaEvo` battle script.
2015-01-30 20:54:34 -05:00
Kevin Lau
3565c5a1fa Random Double Battle: Fix Stone Edge Typo
Rock Slide was mentioned twice. The second one was meant to be Rock Blast
2015-01-30 16:56:42 -08:00
Kevin Lau
803063d496 Random Doubles Battle: Fix Stone Edge Redundancy Check
Stone Edge somehow was a case three times in the switch statement, meaning
only the first one would have been checked. This fix merges the three
checks into one.
2015-01-30 16:18:42 -08:00
Marty-D
13ab79f0f9 Fix Sucker Punch working on redirection
- Also fixes Protean interaction with certain moves that would otherwise
fail
2015-01-30 18:41:46 -05:00
The Immortal
38db6fd2b3 Random Battle: Reject Shadow Claw with Shadow Ball
Should have been done with 66615c5331.
This is for Aegislash.
2015-01-28 19:50:25 +04:00