Commit Graph

616 Commits

Author SHA1 Message Date
codelegend
b72c19c49a remove redundant code in get team 2015-03-18 23:18:01 +05:30
The Immortal
a48eb28773 Merge pull request #1636 from ascriptmaster/randoms
Random Battle: Reject Crunch and Dark Pulse together
2015-03-16 00:16:03 +04:00
Kevin Lau
70102961a1 Random Battle: Reject Crunch and Dark Pulse together
Affects Lucario. It should prefer Crunch unless it is a Nasty Plot set.
2015-03-15 13:13:17 -07:00
The Immortal
7c4c0480d1 Minor Random Battle change
Use the ate counter to check for Normal moves.
2015-03-15 22:31:00 +04:00
Kevin Lau
181d715cd6 Random Battle: Increase priority of Outrage+Setup item check
Prevents Sub+DD+Outrage from receiving Leftovers.
2015-03-15 10:55:30 -07:00
Kevin Lau
dbf9d58e1d Random Battle: Force Unburden with Acrobatics
Affects Hawlucha.
2015-03-14 22:16:52 -07:00
Konrad Borowski
74b6869232 Make &Sweep hold Mail instead of Brick Mail
There is no item called Brick Mail.
2015-03-14 21:37:19 +01:00
Guangcong Luo
670a04dede Merge pull request #1625 from ascriptmaster/move-fixes
Generation 4: Fix Simple
2015-03-14 14:38:31 -05:00
Kevin Lau
d36297d491 Generation 4: Fix Simple to use proper DPP mechanics
In Generation 4, Simple did not double stat boosts as they changed.
Instead, it treated each stat boost as if it had twice the effect.
Reimplemented the deprecated ModifyBoost event, but with slightly
different functionality as before; it now modifies the live boosts so that
they work properly with Simple.
2015-03-13 18:02:33 -07:00
The Immortal
51c9544a4c Merge pull request #1607 from ascriptmaster/randoms
Random Double Battle: Update level scales based on item/ability
2015-03-14 00:29:52 +04:00
The Immortal
47238d2bac Minor Random Battle changes
Fixes #1627
2015-03-14 00:28:42 +04:00
Kevin Lau
420315407a Random Double Battle: Update levels based on some abilities/Eviolite
This will prevent Pokemon like Azumarill from being too powerful due to
their low base stats with an ability that boosts it to incredible levels.
2015-03-13 13:15:06 -07:00
The Immortal
371d11bea8 Random Battle: Reject rain/sun with only one attack 2015-03-13 22:36:23 +04:00
The Immortal
8d1d789d86 Random Battle: Few updates
- Remove Sucker Punch from Hitmonlee as it gets Unburden majority of the
time (100% actually, according to usage stats) and already has Knock Off
- Remove old check specific to Breloom
- Fix Breloom getting Poison Heal when it wants Technician
2015-03-13 19:52:04 +04:00
The Immortal
4d403ba182 Random Battle: Fix Meloetta-P
Also removed Chlorophyll check for Mega Venusaur because it only has
Thick Fat... Not necessary to hardcode it like Mega Mawile having
Intimidate.
2015-03-13 12:09:38 +04:00
The Immortal
ddaa3bc65d Random Battle: Undo two changes from 8e8420971d 2015-03-13 01:48:03 +04:00
The Immortal
f353aab11e Seasonal: Fix Transform properly
Also updated qtrx.
2015-03-12 23:57:40 +04:00
The Immortal
b06b3723d9 Seasonal changes 2015-03-12 23:24:57 +04:00
The Immortal
10f5ce234d Seasonal: Modify Temporaryanonymous' move
Try to balance it by removing priority and adding a crit chance instead.
2015-03-12 23:01:12 +04:00
The Immortal
8e8420971d Update Random Battle script
- Sorted checks
- Removed old and unused checks
- Added new checks and updated several current ones
Moves:
- Moved some cases to be in the appropriate section
Abilities:
- Fixed a Pokemon's third ability never being used if it has the same
rating as `ability1` (example: Iron Fist has 0% usage on Conkeldurr
because it is rated the same as Guts)
Items:
- Reordered the checks / changed priority of items
2015-03-12 22:49:47 +04:00
Konrad Borowski
0556c56b44 Change the case of TalkTakesTime 2015-03-12 14:43:25 +01:00
Rhythms
0f93f17df8 Seasonal: Fix spacing errors 2.0
same reasoning as the other PR that got merged
2015-03-11 21:56:20 -06:00
The Immortal
17d966b9de Merge pull request #1618 from ascriptmaster/randoms-2
Random Battle: Update Meloetta
2015-03-12 01:06:15 +04:00
Rhythms
9058594f64 fix rekeri
Rekeri is a mod
2015-03-11 14:15:19 -06:00
Kevin Lau
1a34f623fa Random Battle: Update Meloetta
- Add sets to Meloetta-Pirouette, effectively splitting Meloetta into
  distinct Physical and Special sets.
- Added Focus Blast to Meloetta-Aria.
2015-03-11 11:46:14 -07:00
Kevin Lau
e6458dea8a Random Double Battle: Add required moves section
This would have resulted in Mega Rayquazas without Dragon Ascent, Drive
Genesect without Technoblast, etc.
2015-03-11 11:05:26 -07:00
The Immortal
fbfec84f9e Seasonal updates
- Update Eevee General's moves
- Add Shame That
- Slightly nerf Dell by removing the accuracy boost, which means he
actually has some risk with Jump Kick
2015-03-11 21:16:27 +04:00
The Immortal
867d6fa29c Seasonal changes
- Remove Defog from WaterBomb
- Change DTC to dtc
- Fix Feliburn's special
- Add message for myself
2015-03-11 03:25:39 +04:00
The Immortal
fa580c5160 Seasonal updates 2015-03-10 21:53:00 +04:00
Juanma Serrano
b07966fd7f Super Staff Bros.: Balance and fix patch
Fix a typo in bloobblob's faint sentence.
chaos's move should not be bounceable.
Update Goddess Briyella's move: change name and animation.
Update Beowulf's moveset, make Spiky Shield mandatory.
Update Legitimate Username's moveset.
Update Queez, he's now a moderator.
2015-03-10 09:38:02 +01:00
The Immortal
66f32b8a39 Random Battle: Add more custom levels
Ninetales and Politoed are in PU because Drought and Drizzle are banned
in UU. Slightly lowered their levels.
2015-03-10 02:08:13 +04:00
Juanma Serrano
98981a774e Super Staff Bros.: Fix style on Morfent
Moves are added through ids.
Also acid armor was wrong.
2015-03-09 16:12:22 +01:00
Juanma Serrano
4ab80e0cfd Implement new Seasonal, Super Staff Bros.
This Seasonal is a joined effort of the whole staff team.
It contains over 100 custom sets and moves, allowing users to play the whole month and still find new things.
For format editing purposes, let it be noted that the Seasonal starts on line 348 and ends on line 3211 on formats.js as of this commit.

While I'm making the final commit to the master repository, let it be noted that this huge code is a joined effort of some members of the staff.
Special thanks to people who have worked on this code, without whose contributions this Seasonal couldn't have been finished for this month:
@ascriptmaster @cadaeic @Slayer95 @TheImmortal @xfix

More information for this special format can be found here:
http://www.smogon.com/forums/threads/3491902/page-6#post-6093168
2015-03-09 11:07:50 +01:00
Juanma Serrano
a158cdfcee Remove February Seasonal, Han vs Hun 2015-03-09 11:07:50 +01:00
Kevin Lau
c75b0db6fa Random Battle: Fix Baton Pass check
It would not reject Baton Pass if the Pokemon did not have Speed Boost.
2015-03-09 00:53:49 -07:00
The Immortal
dc7d170858 Random Battle: Reject Sucker Punch with Foul Play
Foul Play is rejected with setup already.
2015-03-08 22:05:24 +04:00
The Immortal
88e09b03d5 Merge pull request #1602 from ascriptmaster/randoms
Random Double Battle: Update Feint usage on Pokemon
2015-03-08 15:24:18 +04:00
Kevin Lau
505821e103 Random Double Battle: Update Feint usage on Pokemon
- Removed it from Pokemon that are too weak to use it.
- Reject Feint with Fake Out (for Persian).
- Update move checking to not count single hit moves with 30 base power as
  damaging moves.
2015-03-08 00:57:22 -08:00
The Immortal
ef59084e6c Random Battle: Prevent Choice Specs with Acid Spray 2015-03-07 23:31:44 +04:00
The Immortal
c052031408 Random Battle: Change e4ae003f54 2015-03-07 15:52:15 +04:00
The Immortal
16d0655f0a Merge pull request #1597 from ascriptmaster/randoms
Random Battle: Enforce two damaging moves with Trick/Switcheroo
2015-03-07 14:29:58 +04:00
Kevin Lau
e4ae003f54 Random Battle: Enforce two damaging moves with Trick/Switcheroo
Mostly affects Rotom formes.
2015-03-07 00:44:38 -08:00
The Immortal
12bc11c894 Merge pull request #1594 from ascriptmaster/randoms
Random Doubles Battle: Improve move rejection with one attacking move
2015-03-06 22:10:37 +04:00
Kevin Lau
b1cf0f7f5f Random Doubles Battle: Improve move rejection with one attacking move
It now uses the same rules as Random Battle (Singles).
2015-03-06 09:51:46 -08:00
The Immortal
18892c8612 Merge pull request #1592 from ascriptmaster/randoms
Random Battle: Improve readability of ability checks
2015-03-06 13:43:38 +04:00
Kevin Lau
3a85f2246d Random Battle: Improve readability of ability checks
Added a new variable hasAbility that keeps track of all available
abilities on a Pokemon, reducing the verbosity of ability checks
within the move rejection stage of the algorithm.

Also, change the Solarbeam check to look for Drought directly.
2015-03-06 01:22:20 -08:00
The Immortal
fd075c217d Random Battle: Improve Focus Sash selection on leads
Vaporeon with 285 shouldn't get it. Dragonite is 286 so checking for
Multiscale is unnecessary now.
2015-03-06 12:09:25 +04:00
Marty-D
00e316c085 Fix Pursuit potentially running multiple times
- Previously, a Pokemon unable to execute Pursuit against a slower
target would attempt to execute Pursuit again should its target switch
out with U-turn, Volt Switch, or Parting Shot, which would run two sleep
checks, freeze checks, etc.
2015-03-05 20:19:17 -05:00
Kevin Lau
74fc197f99 Random Battle: Update Baton Pass conditions, modify movesets
- Accept Baton Pass with Wish, speed setup, Pokemon with Speed Boost.
- Removed Baton Pass from Glaceon in favor if Wish and Protect.
- Removed Agility from Emolga since it doesn't need it; added Encore.
2015-03-04 12:05:20 -08:00
The Immortal
70328ef13a Merge pull request #1580 from ascriptmaster/randoms
Random Battle: Do not reject setup with Rest+Sleep Talk
2015-03-04 03:34:24 +04:00