Commit Graph

530 Commits

Author SHA1 Message Date
Guangcong Luo
b341a4d830 Merge pull request #1531 from Slayer95/randbats-3-moves
Randbats: fix incomplete movesets
2015-02-19 19:53:21 -06:00
The Immortal
c557c4565c Random Battle updates
- Slurpuff gets Drain Punch in ORAS
- Update Kecleon's moves (old moves for Color Change are irrelevant)
- Update items with Unburden
2015-02-20 02:47:00 +04:00
Ivo Julca
7cb4a4913f Randbats: only reject moves if there are enough remaining moves
This fixes for real the issue of Pokémon with multiple viable Hidden Powers getting less than four moves sometimes.
2015-02-19 17:11:49 -05:00
Ivo Julca
369a74abe3 Random Battle: properly track chosen moves 2015-02-19 16:58:03 -05:00
The Immortal
58d74807f7 Merge pull request #1539 from ascriptmaster/randoms
Random Battle: Refactor STAB Move Checks
2015-02-19 15:21:45 +04:00
Kevin Lau
1a5f1a4eff Random Battle: Refactor STAB Move Checks
The current variables in place to check for STAB do not work as intended.
If a Pokemon has two STAB moves of the same type, and one of them is set
as a move that shouldn't be counted as STAB, the Pokemon will be counted
as not having STAB. Since nothing in the code checks for Pokemon having
STAB of a specific type, it is refactored to be a boolean instead.

In order to avoid a situation where a move like Infestation sets the STAB
variable to true when it doesn't count as a damaging move, these kinds of
moves no longer increment counters for abilities that boost damage, like
Adaptability.
2015-02-18 20:03:49 -08:00
The Immortal
c9eadece1a Random Battle: Increase non-mega Lopunny's level 2015-02-19 01:17:02 +04:00
The Immortal
6e981e090d Merge pull request #1535 from ascriptmaster/randoms
Random Battle: Update Unfezant
2015-02-18 23:42:03 +04:00
Kevin Lau
ae80be8cf0 Random Battle: Update Unfezant
- Force Super Luck on Unfezant (it has a 33% chance of getting Big Pecks)
- Force Scope Lens on Unfezants with enough attacking moves
- Give Unfezant Night Slash
- Replace Wish with Roost in Doubles
2015-02-18 11:39:46 -08:00
The Immortal
9115982978 Random Battle: Reject speed setup without enough attacking moves
Also, not sure why Baton Pass was prevented with Trick. I can't remember
why I added that because it was probably long ago.
2015-02-18 22:50:38 +04:00
The Immortal
a9723181fa Random Battle: Update item for Eruption / Water Spout
It already gets Choice Scarf/Specs from the check above if it has no
status moves.
2015-02-18 21:51:58 +04:00
The Immortal
e2beae32b9 Random Battle updates
- Reject Water Spout and Eruption with setup or RestTalk
- Allow Origin Pulse with RestTalk
- Give Extremespeed users and Sucker Punch users without STAB Life Orb
instead of Expert Belt
- Prevent Life Orb with Dragon Tail
- Low priority: give Leftovers to Pokemon weak to Stealth Rock
2015-02-18 21:37:45 +04:00
Kevin Lau
ecb82454fa Random Battle: Add Scope Lens to Super Luck Pokemon (low-priority)
Super Luck + Scope Lens gives a 50% chance of crit, but isn't a very high
priority since a consistent damage boost from a Choice item can be a
better pick.
2015-02-16 22:58:29 -08:00
The Immortal
c34ec4b133 Random Battle: Reject Focus Blast with RestTalk 2015-02-16 17:51:25 +04:00
Kevin Lau
d46dbe58a0 Random Battle Updates
- Lumineon and Poliwrath have Storm Drain and Water Absorb respectively,
  which is always chosen over Swift Swim, so Rain Dance is unneccessary.
- Give Pokemon with Unburden a Focus Sash
- Give Unburden mons with stat-lowering moves a White Herb (specifically
  targets Sceptile)
2015-02-16 01:20:36 -08:00
Ivo Julca
5b689c0eb0 Random Battle: ensure max IVs for sets without Hidden Power 2015-02-15 18:45:44 -05:00
The Immortal
f126ce9e50 Random Battle: Prevent RestTalk + Rain Dance/Sunny Day 2015-02-15 22:05:34 +04:00
The Immortal
71fc094d36 Forgot this in the previous commit 2015-02-15 21:57:30 +04:00
The Immortal
15fbafeb2f Random Battle updates
- Added speedsetup counter
- Improve Weakness Policy selection (might give it to more than just
speedsetup later on but this is much better than the previous
implementation that gave it to very bad sets)
- Added Lustrous Orb as a low priority option for Palkia
- Slightly increased defensive requirement of Assault Vest
2015-02-15 21:23:24 +04:00
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