Commit Graph

3115 Commits

Author SHA1 Message Date
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
AustinXII
449cacbfd1 Ban Magneton from NU
70.2% of the voting for the nu suspect have voted ban.
2015-06-09 21:58:53 -06: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
Marty-D
cbd28a5c7a Show correct message on powder immunity 2015-06-09 17:20:54 -04:00
Konrad Borowski
3fd7d49f56 Ban Reuniclus and Noivern from RU 2015-06-09 07:14:09 +02:00
Ivo Julca
a231aa9690 Fix Life Orb harming the holder on multitarget moves' failure 2015-06-08 01:43:41 -05:00
The Immortal
3e3f2ad7cc Fix Color Change 2015-06-08 00:35:07 +04:00
Marty-D
ad00529215 Fix Life Orb
- All attacking moves except OHKO moves now take recoil correctly
(except Bide... TODO)
- Thief effects stealing a Life Orb now take recoil correctly
2015-06-07 15:49:38 -04:00
Marty-D
3f997d71dd Ensure confusion damage does not break Illusion 2015-06-06 23:43:21 -04:00
Marty-D
a263bdbfd8 Merge pull request #1921 from ascriptmaster/move-fixes
Sleep Talk cannot call Belch
2015-06-06 18:36:36 -04:00
Kevin Lau
f8d3cb884f Sleep Talk cannot call Belch 2015-06-06 15:34:52 -07:00
Guangcong Luo
e656c83fbc Fix Focus Sash and Confusion interaction 2015-06-06 17:56:39 -04:00
Kevin Lau
48a9a91cdf Fix Smack Down and Thousand Arrows' interaction with Fly/Bounce
They were forcing the Pokemon to attempt to use Fly/Bounce again.
2015-06-06 00:47:11 -07:00
The Immortal
bd700cad85 Add CAP 20: Naviathan
TODO: Improve Random Battle moves once we get an idea of what sets it
runs
2015-06-06 01:18:21 +04:00
Juanma Serrano
a68086e526 Ban Landorus from OU
b-bye ;_;
2015-06-05 10:01:50 +02:00
Kevin Lau
c74e1b7991 Slightly tweak Misty Terrain
It would have halved damage from Dragon moves against semi-invulnerable
Pokemon if No Guard or Lock On was involved.
2015-06-04 10:10:55 -07:00
Marty-D
29e56b1043 Fix confusion timing after rampage moves
- Gen 1, 2, 5, and 6 cause confusion immediately after the move on the
last turn
- Gen 3 and 4 cause confusion at the end of the turn on the last turn
2015-06-04 09:55:30 -04:00
Marty-D
703ee2e76e Merge pull request #1913 from ascriptmaster/move-fixes
Belch cannot be selected if the Pokemon has not eaten a berry
2015-06-04 09:37:19 -04:00
Kevin Lau
038d4e91fe Belch cannot be selected if the Pokemon has not eaten a berry
https://www.youtube.com/watch?v=paMtFIVWRkQ&t=6m33s
2015-06-03 20:04:13 -07:00
The Immortal
6d904e9096 Random Battle: Fix Megas being removed in d279b2ded5 2015-06-03 23:13:02 +04:00
AustinXII
c17b9b2913 Bring Gallade to NU
with the lower than 1.7% usage Gallade has dropped to NU
2015-06-02 13:40:09 -06: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
Marty-D
aab6d24bb2 Correct a few "events" from Pokémon XD 2015-05-29 14:27:00 -04:00
Marty-D
4749def28b Add Johto starter prizes from Pokémon XD 2015-05-29 11:58:59 -04:00
Guangcong Luo
5be489504d Fix Razor Wind in Doubles 2015-05-29 00:02:33 -04:00
Guangcong Luo
066b1d6828 Merge pull request #1865 from ascriptmaster/move-fixes
Battle refactor: No longer reset ignore in Battle#update
2015-05-27 01:11:34 +00: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
Guangcong Luo
590ebf9730 Merge pull request #1898 from ascriptmaster/tests
Un-hardcode Rock Head in favor of an onDamage handler
2015-05-26 01:25:06 +00:00
Marty-D
c40fdef413 Remove Yawn tag when the effect ends 2015-05-23 14:48:13 -04: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
Marty-D
0581a47431 Fix rampage-ending confusion message 2015-05-21 14:54:37 -04: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
Kevin Lau
12be51b262 Battle refactor: New functions ignoringItem() and ignoringAbility()
BattlePokemon#ignoringItem and BattlePokemon#ignoringAbility are
hardcodedto return true for any situation where pokemon.ignore['Item']
or pokemon.ignore['Ability'] respectively would have been true.
2015-05-18 19:17:41 -07:00
SolarisFox
29b961ff69 Style fix: indexOf() comparisons 2015-05-18 15:55:57 -07:00
Marty-D
5d0beee8ac Fix partial trapping end messages 2015-05-18 15:08:52 -04:00
The Immortal
7ab3d2d1fe Update Pokemon in PU 2015-05-18 19:11:16 +04:00
Ivo Julca
bcb3278737 Battle Factory: sync sets 2015-05-17 23:59:41 -05:00
Marty-D
724ae5e0ea Add Endure activation message 2015-05-17 12:58:23 -04:00
Marty-D
420e3458e7 Fix Aromatherapy's interaction with Sap Sipper 2015-05-16 19:47:37 -04: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
Marty-D
09c5278d4e Merge pull request #1882 from ascriptmaster/move-fixes-2
Fix Imprison bugs
2015-05-14 17:23:00 -04:00
Kevin Lau
54f9383a2c Fix Imprison bugs
Imprison was not blocking moves the turn it was used.
2015-05-14 14:18:41 -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