Commit Graph

822 Commits

Author SHA1 Message Date
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
2c2a3bdf58 Fix misplaced cases in random sets generators 2015-11-07 16:50:51 -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
7b625b7380 Random Battle: Update levels for megas without stones 2015-11-05 03:18:43 +04: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
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
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
Kevin Lau
fc0237649c Random Battle: Update Swellow
Remove Endeavor.

Force Guts on Pokemon with the ability and have Protect.
2015-10-28 15:29:45 -07:00
The Immortal
872c4995a6 Merge pull request #2237 from ascriptmaster/randoms
Random Battle: Ability and STAB Changes
2015-10-26 22:59:22 +04:00
Kevin Lau
ea1a2dee8c Random Battle: Setup and STAB Fixes
Reject Sucker Punch if it is the only STAB move on a Pokemon with moves
that boost Special attacks.

Fix issues with setupType not being set properly with setup moves
appearing in mixed sets.
2015-10-26 10:41:05 -07:00
The Immortal
5620f59553 Random Battle: Prevent Roar with setup 2015-10-25 16:37:20 +04:00
The Immortal
29b7b3b38e Random Battle: Update Tentacruel and Genesect 2015-10-23 13:39:23 +04:00
The Immortal
071f06dbfb Random Battle: Prevent Sleep Talk without Rest
And prevent an Orb on Guts RestTalk Throh.
2015-10-21 02:44:53 +04:00
The Immortal
f52d50be27 Random Battle: Ability and move updates
- Prevent Quick Attack as the only STAB on -ate
- Make Adaptability Pokemon get more than one STAB
- Allow Guts with RestTalk
- Make sure Milotic has Marvel Scale with RestTalk
2015-10-21 00:32:35 +04:00
Juanma Serrano
2b0d9cd5b7 Seasonal: Remove items that clash with Trick-o-treat
Assault Vest disallows it.
Choice Band and Specs lock into it without giving a proper boost.
We give Life Orb to those so they can get a general damage boost.
2015-10-15 10:12:13 +02:00
The Immortal
5ecdfd8dc9 Random Battle: Update Swellow and Contrary
- Add Protect to Swellow and prevent Endeavor with Quick Attack
- Make sure Pokemon with Contrary always have a move that benefits
(except Shuckle)
2015-10-14 19:54:13 +04:00
The Immortal
b6bb84323c Random Battle: Modify what's acceptable as two attacks
- BoltBeam is now only acceptable on Special Attacking Normal-type
Pokemon
- Night Shade / Seismic Toss with another non-STAB move is acceptable
2015-10-14 03:45:06 +04:00
The Immortal
d38b8d8bd8 Random Battle improvements
- Don’t count Pursuit as STAB
- Prevent phazing moves with setup (unless with RestTalk)
- Prevent Fire Fang with Fire Blast
- Prevent Zen Headbutt with Psychic
- Prevent Substitute with Rest
- Remove Counter exception so Pokemon with it get their sets checked
- Make sure certain Pokemon always get a recovery move (currently:
Alomomola, Chansey, Blissey)
2015-10-13 02:14:13 +04:00
Kevin Lau
2cabcc0c69 Update NFE Random Battle sets being used in Seasonals
Also, allow Pumpkaboo/Gourgeist formes in Seasonals and add a nickname for
Espurr.
2015-10-12 13:59:38 -07:00
Kevin Lau
06b5987bfb Seasonals: Pokemon now have five moves
Magikarps now gain Aqua Ring, which has been modified to heal 1/8 of
maximum HP.

Also fixed some minor typos.
2015-10-09 16:22:46 -07:00
Juanma Serrano
d18e90fd93 Implement October Seasonal, Spoopy Party
This is going to be the Seasonal Ladder for the remainder of October.
Super Squad Showdown will be finished and implemented for November.
2015-10-09 13:12:36 +02:00
The Immortal
d2bb5bf545 Random Battle: Don't count Clear Smog as STAB 2015-10-08 16:47:49 +04:00
Kevin Lau
1fa49099ce Random Battle Move and Ability Updates
Add new sets for Cherrim-Sunshine specifically.

Reject Mach Punch as the only STAB move if the Pokemon does not have
Technician. Affects almost every Fighting Pokemon except Breloom.

Reject Bullet Punch as the only STAB move if the Pokemon does not have
Technician. Affects Metagross and Mega Lucario.

Don't count Charge Beam as singular STAB, and add checks for redundancy
with Thunderbolt based on the number of remaining Special moves. Affects
Emolga and Magnezone.

Reject Sheer Force with Fake Out in Doubles. Affects Hariyama.

Reject Flash Cannon with Iron Head in Doubles to match the rule in
Singles. Affects Aegislash.

Add Freeze-Dry as an option to Mega Glalie sets. Removed Crunch from its
Singles set and Taunt from both sets. Reject Ice Shard with Freeze-Dry so
it doesn't get too many Ice-type moves.
2015-10-05 17:07:47 -07:00
Marty-D
e8a6747e02 Fix multi-hit moves returning false damage when hitting subs 2015-10-03 15:00:29 -04:00
The Immortal
e2ef6ec36a Random Battle: Modify levels and Ability ratings
- Set Pokemon whose Ability is banned from UU at UU level
- Change weather Ability ratings, primarily to make sure Politoed
always gets Drizzle
2015-10-02 20:29:19 +04:00
The Immortal
25491fdcdf Add new OMs of the Month 2015-10-01 22:21:03 +04:00
The Immortal
849a48de9d Random Battle updates
- Add Protect and Sleep Talk to Registeel
- Allow Shadow Sneak as the only STAB on mono-Ghosts
- Prevent Night Shade/Seismic Toss with STAB
- Reject Thunder Wave with Toxic instead of the reverse
2015-10-01 00:33:01 +04:00
Kevin Lau
6e486f9411 Random Battle: Update Cinccino
- Remove Wake Up Slap because it's no longer Technician boosted.
- Change Technician to reject if a Pokemon has Skill Link and all their
Technician-boosted moves are Skill Link moves.
- Added Aqua Tail.

Miscellaneous changes:

- Placed Sheer Force within the counterAbilities section.
- Sorted the coutnerAbilities in the Random Doubles Battle code.
2015-09-29 15:07:15 -07:00
The Immortal
4a8a776b83 Merge pull request #2174 from ascriptmaster/randoms
Random Battle: Ability and Move Updates
2015-09-28 21:41:13 +04:00
Kevin Lau
1a528be0c3 Random Battle: Ability and Move Updates
Reject Solar Power if there are no Special moves (affects Charizard).

If Rampardos does not have Head Smash, make sure it gets Sheer Force.

Don't set the setup type to Physical if there are no Physical moves and at
least two Special moves (or vice versa for Special setup)
2015-09-28 10:30:33 -07:00
The Immortal
486d7991e0 Random Battle: Do not count Shadow Sneak as STAB 2015-09-24 19:30:24 +04:00
Slayer95
710fa6af53 Merge pull request #2172 from sobolews/magnitude
Display value of magnitude after move is used
2015-09-22 23:21:10 -05:00
Carl Sobolewski
02c473e8f3 Display value of magnitude after move is used 2015-09-22 21:51:12 -06:00
The Immortal
e0d48328ac Random Battle: Improve Eruption/Water Spout sets
- Do not count Eruption and Water Spout as STAB so Pokemon get an
additional STAB move with them
- Remove Water Spout from Octillery as it’s too slow to make use of it,
and add Scald + Gunk Shot
2015-09-21 23:41:19 +04:00
The Immortal
74cb4b9b61 Random Battle: Improve sets with Trick 2015-09-19 05:10:48 +04:00
The Immortal
88f356da80 Random Battle: Prevent Dazzling Gleam with Play Rough 2015-09-14 22:19:23 +04:00
The Immortal
933cfca654 Random Battle: Item updates
- Prevent Life Orb with 2 attacks + Rapid Spin
- Add Sharp Beak Talonflame
2015-09-10 01:02:17 +04:00
The Immortal
c9864f8e6d Random Battle: Prevent Aqua Jet as only STAB 2015-09-05 04:35:03 +04:00
Marty-D
a16fdff02f Merge pull request #2137 from ascriptmaster/move-fixes-2
Shield Dust does not block self-boosting secondaries
2015-09-03 08:47:59 -04:00
Kevin Lau
79732b414e Shield Dust does not block self-boosting secondaries
Refactor TrySecondaryHit to become ModifySecondaries instead to allow for
proper behavior.
2015-09-03 03:10:16 -07:00
Kevin Lau
761a18e459 Random Battle: Don't randomly choose setupType in case of a tie
If both Physical and Special setup moves are present, and there are an
equal number of Physical and Special moves, choose setup based on the
first setup move in the moveset instead of randomizing it.
2015-09-02 16:00:49 -07:00
The Immortal
3530e95a96 Random Battle: Fix Pokemon with both Physical and Special setup
such as Lucario. Instead of always setting `setupType` to `Special` for
those cases, it now sets it to the one with the most attacks (or random
if it’s equal).

Also, added another check to fix the issue of too many Dark type
attacks on a Pokemon.
2015-09-02 17:10:43 +04:00
The Immortal
fb55d5a032 Random Battle updates
- Fixed Stealth Rock (and Defog/Spin, which isn’t as big of a problem)
being on multiple Pokemon
- Reject Snow Cloak without Snow Warning on the team
- Reject Swift Swim without Drizzle/Rain Dance on the team
- Give Mega Venuasaur Chlorophyll as a starting ability (because
Overgrow is useless)
- Give RestTalk Pokemon Leftovers (so they don’t get Focus Sash if they
are the lead)
2015-08-28 16:46:32 +04:00
The Immortal
6fc79a1e39 Random Battle updates
- Give Regigigas Knock Off instead of Earthquake
- Reject Hidden Power with RestTalk
- Reject Toxic with Flame Charge
2015-08-27 21:26:18 +04:00
The Immortal
4c5bbdc40c Random Battle: Fix Sleep Talk without Rest 2015-08-20 21:59:58 +04:00