Commit Graph

797 Commits

Author SHA1 Message Date
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
Konrad Borowski
f8266fc0b1 Add support to randbats for mega stone banning
This fixes a problem introduced by 77b6b666 causing certain Pokemon
with mega stones (and base forme of Audino) to have level 90 in
randbats.

This commit intentionally doesn't introduce any new levels for mons who
have their tier in parenthesis. Looking over the list of mons who don't
have hardcoded levels, most of them are barely improvement over their
base forme, which is the issue in a standard tiers with its limit of
one mega. However, because teams don't have to use a mega in randbats
(because of how its generator works), getting just a slightly version
of a Pokemon is not a big deal as it's still an improvement, even if
minor.
2015-08-20 10:36:59 +02:00
Kevin Lau
d0e18e3e15 Random Battle: Update Slurpuff
Give it Dazzling Gleam as an attack option, and reject Unburden on it if
it doesn't have setup moves.
2015-08-19 12:41:35 -07:00
Marty-D
6b0f323f69 Challenge Cup: Reduce chances of getting a forme-changing item
- Forme changes requiring an item were being generated too frequently
2015-08-17 14:59:13 -04:00
Kevin Lau
5790cf20fe Random Doubles Battle: Synchronize Ability selection with Singles
Many of the rules used in Random Singles Battles also apply to Doubles, so
many of them are transferred over to the Doubles set generation code.
2015-08-14 18:16:16 -07:00
The Immortal
46586337e6 Merge pull request #2110 from ascriptmaster/randoms
Random Battle: Add extra scenario for Choice Scarf distribution
2015-08-14 21:10:13 +04:00
Marty-D
afa03ac2a9 Improve Challenge Cup's forme selection 2015-08-14 11:39:41 -04:00
The Immortal
91e9744ed7 Random Battle: Improve Basculin, Wobbuffet, and sets
Mold Breaker is rated high but Basculin always prefer Adaptability. Add
Safeguard as an alternative to Destiny Bond for Wobbuffet (but prevent
both on the same set), and Sitrus Berry as an alternative to Leftovers.

Prevent Counter, Metal Burst and Mirror Coat from being rejected. They
only apply to Bastiodon, Chansey and Wobbuffet, who don’t care about
STAB.
2015-08-13 05:11:56 +04:00
The Immortal
f8f51ad4fc Random Battle: Improve Life Orb selection with Speed Boost
Life Orb is selected unless the Speed Boost user has Substitute (in
which case Leftovers is selected later on). Also moved the Speed Boost
check above the Choice checks so that they don’t have to check for
Speed Boost.
2015-08-12 21:27:25 +04:00
Kevin Lau
e09857fe9f Random Battle: Add extra scenario for Choice Scarf distribution
It is given to Pokemon within a certain speed tier with 3 Special attacks
and also U-Turn.
2015-08-12 00:54:55 -07:00
The Immortal
c2903eae0c Random Battle updates
- Add Foul Play to Mandibuzz
- Prevent more than one Stealth Rock setter per team
- Prevent more than one hazard remover per team
2015-08-10 22:28:06 +04:00
The Immortal
02945dd017 Merge pull request #2107 from ascriptmaster/randoms
Random Battle: Slightly tweak Hoopa, fix chance of Hoopa forme appearing
2015-08-10 03:18:37 +04:00
Kevin Lau
faea82765b Random Battle: Slightly tweak Hoopa, fix chance of Hoopa forme appearing
Reject Psychic with Hyperspace Hole in Doubles, and give Hoopa Trick Room.

Give Hoopa-Unbound Gunk Shot, Psychic, and Substitute.
2015-08-09 15:26:03 -07:00
Marty-D
02c7323fb8 Refactor breaking protection
- And fix Mat Block
2015-08-08 14:38:51 -04:00
The Immortal
ae6fc17ac3 Random Battle: Prevent Air Balloon with RestTalk 2015-08-08 04:50:51 +04:00
Guangcong Luo
08463c42a5 Merge pull request #2040 from ascriptmaster/seasonal
Implement August/September Seasonal, Rainbow Road
2015-07-30 03:49:41 +00:00
Kevin Lau
9ab24bd684 Random Doubles: Tweak Helping Hand, Heal Pulse, Trick Room distributions
Removed Helping Hand and Heal Pulse from Pokemon with very low usage stats
for those moves.

Reject Trick Room with Icy Wind.
2015-07-29 11:10:22 -07:00
The Immortal
f29e35ea9d Move Pidgeot to PU
And it’s custom Random Battle level isn’t needed anymore because it’s
unlikely (Mega) Pidgeot will go to OU.
2015-07-26 15:59:29 +04:00
Guangcong Luo
8fd4ea2bae Fix locked move and PP tracking interaction 2015-07-26 04:18:31 -04:00
Guangcong Luo
c8c03ad92d Update Endless Battle Clause
The full description is in the comments of the Endless Battle
Clause entry in rulesets.js.

This update fixes a lot of the issues with yesterday's version.

Also included: A minor refactor of deductPP, which did not need
a success variable.
2015-07-22 03:41:43 -04:00
The Immortal
e92714a2ed Random Battle: Prevent Outrage with Draco Meteor
if they are the Pokemon’s only two damaging moves.
2015-07-21 02:16:53 +04:00
Kevin Lau
411d741b08 Implement August/September Seasonal, Rainbow Road
Rainbow Road is a Mario Kart and color themed seasonal.

Every few turns, a player can get an item that changes the course of the
battle, such as a Mushroom to increase speed.

Pokemon also get color moves that are super-effective on certain other
colors.
2015-07-20 14:38:14 -07:00
The Immortal
ba5cb5d932 Merge pull request #2063 from SolarisFox/patch-2
Randoms: Enable Lilligant to get Own Tempo
2015-07-18 03:12:50 +04:00
The Immortal
5ed4a13610 Random Battle: Improve Pyroar and Rapidash
- Reject Sunny Day if the Pokemon lacks an ability that benefits, and
lacks SolarBeam
- Add Dark Pulse to Pyroar to fix the issue raised in #2063
- Reordered the Status cases to weather/status/recovery/other instead
of just alphabetical
2015-07-18 03:05:01 +04:00
SolarisFox
7eb1a284d9 Randoms: Enable Lilligant to get Own Tempo 2015-07-17 16:04:19 -07:00
Kevin Lau
b0e1fd5789 Fix Pressure's interaction with multi-target moves and Follow Me
Implement new function getMoveTargets to list all move targets given a
user and a move. Refactor Battle system to remove redundancies with
checking move targets. Run the RedirectTarget in this function instead of
later after TryMove, since technically single-target moves changing
targets should occur before the move is attempted.

Refactor the DeductPP event to be a singleEvent that targets the Pokemon's
ability instead of a global event. Run this event on the move's targets as
calculated by BattlePokemon#getMoveTargets.
2015-07-17 01:47:55 -07:00