Commit Graph

733 Commits

Author SHA1 Message Date
Ivo Julca
f18eef39ca Fix Travis build 2015-06-12 03:41:22 -05:00
The Immortal
ae94ce4cc2 Update CC formats
Per Smogon, “Challenge Cup” is keeping its old meaning. Renaming the
new CC to Hackmons Cup.
2015-06-10 13:35:39 +04:00
Ivo Julca
26680768eb Properly handle failure of multitarget moves
- On failure, they will no longer trigger the `AfterMoveSecondarySelf` event. It was a common pattern to check for success on its handlers, so this removes some duplication.
- All failed moves will now run any set `MoveFail` single events.
- Life Orb will now harm the holder if a successful attack did 0 damage (e.g. False Swipe on a 1 HP target).
2015-06-09 19:31:11 -05:00
The Immortal
6d904e9096 Random Battle: Fix Megas being removed in d279b2ded5 2015-06-03 23:13:02 +04:00
Kevin Lau
d279b2ded5 Restrict Stealth Rocks on Random Battle Teams to 2
Refactor set generation function to use a new parameter `teamDetails` to
keep track of more than just whether there shouldn't be a Mega Evolution.
2015-05-31 17:52:42 -07:00
Guangcong Luo
b7aa629703 Merge pull request #1889 from ascriptmaster/move-fixes-2
Battle refactor: New function isGrounded(), bug fixes
2015-05-26 07:09:19 +00:00
Kevin Lau
61996d3f6e Battle refactor: New function isGrounded(), bug fixes
Added BattlePokemon#isGrounded to check for the grounded-ness of a
Pokemon. Also BattlePokemon#isSemiInvulnerable for whether a Pokemon is
in the first turn of a two-turn move that makes them semi-invulnerable.

Fixed Terrain bugs involving Pokemon in a semi-invulnerable state.

Changed OHKO move check to use BattlePokemon#isSemiInvulnerable, fixing a
graphical bug that would display an immunity message when a Pokemon
attempted an OHKO move on a higher-leveled Pokemon that was being held by
the effect of Sky Drop.

Fixed Misty Terrain bug that was causing Rest and the effect of Yawn to
put Pokemon to sleep.

Fixed Misty Terrain bug that was causing Yawn to fail.

Fixed Electric Terrain bug that was causing Yawn to succeed.
2015-05-21 16:54:44 -07:00
Kevin Lau
17724c59f0 Un-hardcode Rock Head in favor of an onDamage handler
Instead of having a hardcode in scripts.js that people needed to
reference, it seemed more intuitive to take advantage of the Damage
event instead, and have Rock Head negate damage within the event.

Fixed a bug in Gen-NEXT Rock Head exhibiting the same behavior that
was causing the original Rock Head + Mummy glitch.
2015-05-21 13:52:02 -07:00
Guangcong Luo
1824125753 Merge pull request #1887 from SolarisFox/patch-5
Style fix: indexOf() comparisons
2015-05-20 18:59:18 +00:00
Marty-D
0e2606b9b9 Fix failure message showing for self effects 2015-05-20 10:45:17 -04:00
Kevin Lau
276f5ff475 Random Doubles Battle: Item Distribution Update
- Removed Trick/Gyro Ball checks as no Pokemon uses that combination.

- Reject Life Orb on Pokemon with 55 or less base Speed.

- Add a check for slow and strong Regenerator Pokemon to receive Assault
  Vest, at slightly higher priority than Sitrus Berry.
2015-05-19 16:02:47 -07:00
Marty-D
c1a1ce85df Fix failure message showing for secondary effects 2015-05-19 15:49:45 -04:00
SolarisFox
29b961ff69 Style fix: indexOf() comparisons 2015-05-18 15:55:57 -07:00
The Immortal
fca467c76d Random Battle: Give Aegislash a better item
No more Assault Vest Aegislash!
2015-05-16 23:06:49 +04:00
Marty-D
27db03ebef Battle Factory: Fix Thick Fat resistances 2015-05-15 21:52:07 -04:00
Kevin Lau
b4ccff60dd Fix npm build errors 2015-05-15 01:08:25 -07:00
Ivo Julca
49b2898e28 Battle Factory improvements
- Reject teams significatively weak to a single attack type.
- Improve rejection of multiple megas.
- Reject weather-based abilities without their associated weather.
2015-05-14 16:10:51 -05:00
The Immortal
f7167c9393 Add new format: Battle Cup 1v1
In place of Challenge Cup 1v1. Challenge Cup 1v1 under the new Challenge
Cup rules (f73ea6a0ea) isn't a good
format. It's supposed to have some competitive element in that you can
make predictions on what an opponent might have to beat your "best"
choice and as a result you can counter-pick. But with the new Challenge
Cup, that goes out the window.

This adds a slightly updated version of the old CC generator.
2015-05-14 23:08:38 +04:00
The Immortal
f73ea6a0ea Update Challenge Cup
- CC now follows Hackmons mechanics to differentiate it from Random
further (in other words, CC is now Hackmons CC)
- Took this opportunity to finally rename CC 1v1
- Commented out Gen 1 CC
2015-05-12 13:48:14 +04:00
Guangcong Luo
8b7963e996 Merge pull request #1874 from ascriptmaster/tests
Upgrade tests
2015-05-12 06:25:38 +00:00
Rhythms
8ec0b193a4 Battle Factory: EV Fix
not really necessary, but "more proper"
2015-05-11 19:10:33 -06:00
Juanma Serrano
f9375a77a6 Merge pull request #1870 from Slayer95/battle-factory
Implement Battle Factory
2015-05-11 09:54:34 +02:00
Ivo Julca
3817311d9c Implement Battle Factory 2015-05-11 01:03:25 -05:00
Kevin Lau
93d5efef43 Status moves return -immune if the target is immune to the status move 2015-05-10 21:00:23 -07:00
Kevin Lau
c9c54ada16 Random Battle: Reject Toxic Spikes where Spikes is rejected
Prevents things like Shell Smash + Toxic Spikes.
2015-05-08 00:34:58 -07:00
Juanma Serrano
1a2882eb09 Remove March-April Seasonal, Super Staff Bros. 2015-05-04 17:35:21 +02:00
Marty-D
1209954765 Fix Sheer Force properly 2015-05-04 10:45:44 -04:00
Juanma Serrano
299213040d Fix Sheer Force
This adds the intended fix of bdd99e84d3 and fixes the problem that made all Sheer Force mons to ignore the AfterMoveSecondary event.
2015-05-04 12:15:09 +02:00
Marty-D
bdd99e84d3 Fix Sheer Force
- Sheer Force may not be user's Ability by the time `AfterMoveSecondary`
effects are checked
- Sheer Force boosted moves called by other moves now ignore
`AfterMoveSecondary` effects properly
2015-05-03 11:40:39 -04:00
The Immortal
bea648d979 Add tier changes 2015-05-03 09:35:05 +04:00
Marty-D
a92e38547f Fix Rock Head
- Since Mummy exists, it is entirely possible not to have Rock Head by
the time recoil happens
2015-05-02 15:05:42 -04:00
The Immortal
0000f4dfab Random Battle: Prevent Choice with Speed Boost
Fixes #1848
2015-05-02 13:35:51 +04:00
Joimer
5c9b7ed707 Remove unused team makers 2015-05-01 05:08:33 +02:00
Marty-D
c53d022e4b Fix OHKO moves
- Fix Gen 1/Stadium's accuracy and immunity order
- Fix OHKO moves ignoring Phantom Force
- Add OHKO messages
2015-04-30 13:06:45 -04:00
Slayer95
5788bf82b7 Merge pull request #1839 from Rhythms88/seasonal
Super Staff Bros.: Change Astyanax into Asty
2015-04-29 17:14:38 -05:00
Rhythms
fb9cc056b2 Super Staff Bros.: Change Astyanax into Asty 2015-04-29 16:12:56 -06:00
The Immortal
b270788e0d Merge pull request #1837 from SolarisFox/patch-4
add weakcoasta to randbats
2015-04-29 16:08:54 +08:00
SolarisFox
5f95a7cc3b add weakcoasta to randbats 2015-04-29 00:43:32 -07:00
The Immortal
8e6d7fd4c9 Merge pull request #1838 from Rhythms88/seasonal
Super Staff Bros.: Remove @Goddess Briyella.
2015-04-29 15:38:15 +08:00
Rhythms
0a57a27595 Super Staff Bros.: Remove @Goddess Briyella 2015-04-29 00:28:23 -06:00
Juanma Serrano
d44bfb3e92 Merge pull request #1823 from Rhythms88/master
Seasonal: Rank Changes
2015-04-27 08:45:03 +02:00
Ivo Julca
54c8c8a0ad Hackmons: fix decisions being overriden when Struggle is in the first slot 2015-04-26 17:36:36 -05:00
Guangcong Luo
4db053befe Revert "Show fail message when status is blocked by Sub"
This was implemented exactly the wrong way and showed fail messages
in a lot of situations they shouldn't show up, such as when
Close Combat's Def/SpD drops didn't happen.

This reverts commit 1edc40f936.
2015-04-25 21:58:09 -05:00
Rhythms
9b4c9617bb Seasonal: Rank Changes
- Promoted Acedia and Audiosurfer.
- Fixed one of Diatom's ranks.
- Moved shaymin's and MattL's moves to the correct areas, as well as
Acedia's and Audiosurfer's.
2015-04-25 13:15:40 -06:00
Juanma Serrano
9ace640bcc Merge pull request #1808 from RhythmsAreFromVibrations/seasonal
Super Staff Bros.: Add %Kayo
2015-04-25 14:57:08 +02:00
Kevin Lau
b55951d5db Random Battle: Slightly tweak Hidden Power rejection check
STAB Hidden Power without the Pokemon's other STAB can be bad. Since
there's no real way to check if the Pokemon has the other STAB with the
current system, it's better to remove that check.
2015-04-24 18:23:31 -07:00
The Immortal
3d2aee35ed Merge pull request #1810 from ascriptmaster/randoms
Random Battle: Improve Hidden Power rejection check
2015-04-25 06:44:15 +08:00
Kevin Lau
25d50dc2b1 Random Battle: Improve Hidden Power rejection checks
Reject Hidden Power with Special setup and 2 Special moves if:
- It is not STAB
- It is not part of a Ghost/Fighting combination
- It is not part of an Electric/Ice combination
- It is not being used by Lilligant, which needs it for coverage
2015-04-24 15:09:41 -07:00
Kevin Lau
04052d6449 Random Battle: Tweak Shedinja's EVs
HP/Def/SpD EVs are completely useless on Shedinja.
2015-04-23 19:45:47 -07:00
Joimer
4938087d53 Super Staff Bros.: Demote Vacate
He quit :(
2015-04-21 19:46:23 +02:00