Commit Graph

496 Commits

Author SHA1 Message Date
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
The Immortal
66615c5331 Update Random Battle
- Aegislash is too slow for at level 70 for Autotomize and prefers one
of its other moves
- Prevent Iron Head with Flash Cannon
2015-01-28 14:24:50 +04:00
Kevin Lau
caee7a0457 Random Battle: Change conditions for priority moves
If a Pokemon has a move that boosts speed (Rock Polish/Agility), reject
all modified-priority moves.

If a Pokemon has 4 Physical or 4 Special moves, reject Choice Scarf if the
Pokemon has a priority move.
2015-01-27 10:59:43 -08:00
Marty-D
5de159bee3 Past gens: Fix recovery moves' rounding
- Prior to Gen 5, recovery moves rounded down instead of half up
- Gen 2 weather-dependent recovery moves restore all HP in sun
2015-01-24 16:40:31 -05:00
The Immortal
05f8a26130 Prevent multiple Hidden Power in Hackmons CC 2015-01-22 18:26:51 +04:00
The Immortal
94a56552d8 Update randomCCTeam 2015-01-21 17:05:14 +04:00
The Immortal
d038f1f7c4 Update Hackmons Challenge Cup 2015-01-20 23:38:13 +04:00
The Immortal
1fcde879d3 Add Hackmons Challenge Cup 2015-01-20 22:45:54 +04:00
The Immortal
dfb16963a5 Random Battle: Prevent some status moves with Rest + Sleep Talk 2015-01-20 02:42:46 +04:00
The Immortal
c1b0b09d05 Random Battle: Reject Mach Punch with Focus Punch
Breloom is the only Pokemon that gets both and will get the better
ability with only one of them. Basically, no more Poison Heal Mach Punch
and no more Technician Focus Punch.
2015-01-19 16:34:36 +04:00
The Immortal
93e5a516a4 Random Battle: Allow Life Orb on non-setup
Four attacks + Leftovers is bad.
2015-01-19 15:49:43 +04:00
The Immortal
7033c0a83a Random Battle updates
- Eternal Flower Floette prefers Choice Scarf/Specs sets
- Lower the rate of Unreleased Pokemon to 20%
2015-01-19 15:02:40 +04:00
ascriptmaster
b3f9efed5d Split the Randoms check for Sheer Force and Serene Grace
- Serene Grace is automatically rejected for Chansey and Blissey, who
  prefer Natural Cure.
- Serene Grace works best with secondaries that have a high chance of
  activating, so a seperate counter is used to check those specifically.
- Sheer Force doesn't need a secondaries chance check; both branches of
  the check would have allowed Sheer Force to be used.
2015-01-18 18:56:31 -08:00
ascriptmaster
08fdf3de80 Random Battle Item Changes
- Dedenne gets Petaya Berry, since it always has Cheek Pouch
- Dusclops no longer gets Eviolite, because it's covered elsewhere in code
2015-01-18 01:01:22 -08:00
The Immortal
0d7f119000 Random Battle updates
- Add Eviolite for NFEs
- Removed old and mostly unused custom levels
- Updated some Pokemon levels
- Removed all NFE Pokemon from Random Battle except for Chansey,
Doublade, Pikachu, Porygon2,  and Scyther
2015-01-18 03:32:12 +04:00
Kevin Lau
1b27f8e99d Change items involved when a Pokemon has Acrobatics or Unburden
- Acrobatics Pokemon have Flying Gem.
- Hawlucha no longer has Sky Attack in its random battle movepool, so we
  remove references to that in the code.
- Double Random Battles only check for Fake Out on Unburden Pokemon (and
  formerly Sky Attack on Hawlucha, which is removed, so there is no need
  to cycle through all of their moves.
2015-01-17 01:44:58 -08:00