Commit Graph

553 Commits

Author SHA1 Message Date
Guangcong Luo
fac38eae05 Merge pull request #150 from Joimer/patch-4
Ladderable 1VS1 Challenge Cup
2013-01-23 05:39:57 -08:00
TheImmortal
da60c928ba Cloyster & Keldeo events 2013-01-23 15:45:23 +04:00
Joim
93b7293fa6 Ladderable 1VS1 Challenge Cup
Adding Challenge Cup to the searcher, also debug's not necessary anymore.
2013-01-23 08:50:35 +01:00
Marty-D
88caef8914 Make sure multi-hit moves count each hit's damage separately. 2013-01-22 19:37:58 -05:00
Marty-D
8bbeabb1a9 Correct Magic Coat in Gen IV and V.
- Magic Coat can only bounce one move per turn in Gen 4, while in Gen 5
it stays active until the end of the turn.
2013-01-22 15:46:50 -05:00
Guangcong Luo
5d1e4a6c4b Fix more crashes relating to new stat code 2013-01-22 10:17:56 -08:00
Cathy J. Fitzpatrick
d8dd6f2d6d Fix Choice Specs
Previously, the 'onModifySpA' method was misspelled as 'onModifySpa'.
2013-01-22 05:14:27 -07:00
Guangcong Luo
b49b86a1ab Fix a bunch of bugs in the stats refactor 2013-01-21 15:24:16 -08:00
Marty-D
7490af2692 Fix Swallow healing. 2013-01-21 17:57:12 -05:00
TheImmortal
2e650d448a Flare Boost & Toxic Boost are BP modifiers 2013-01-22 01:04:35 +04:00
Marty-D
9dc97b3940 Fix Soul Dew's boosts. 2013-01-21 16:02:16 -05:00
TheImmortal
215cd108ee Fix Relic Song transforming Meloetta twice
- It incorrectly transforms twice in doubles due to being a spread hit
2013-01-22 00:45:29 +04:00
Guangcong Luo
7fa7f24a39 Refactor how stats are calculated
They're now read on-the-fly instead of being recalculated and cached
every update.
2013-01-21 11:49:22 -08:00
Cathy J. Fitzpatrick
6b16dd6139 Fix redirection of randomNormal target moves.
Previously, Follow Me (and anything else that redirects moves, such as
various abilities) was unable to redirect the target of a
'randomNormal' target move, because validTargetLoc() always returned
false for a 'randomNormal' type move; this reflects the fact that the
client is not allowed to specify the target for such a move, because it
is chosen randomly. However, the internal game logic does need to be
able to specify a target for 'randomNormal' moves.

This commit adds a new parameter to validTargetLoc that specifies whether
the proposed target was chosen by the client or by the internal game logic.
If the proposed target was chosen by the internal game logic, then the same
targeting rules apply as in the case of a "normal" target move.

Note that it is necessary to add this new parameter, rather than just making
'randomNormal' behave the same as 'normal', because without the userSelected
check, a user could send a crafted choice string to the server specifying a
target for a 'randomNormal' move, and the server would respect the choice.
This implementation correctly prevents the client from specifying the target
of a 'randomNormal' move.
2013-01-21 00:04:21 -07:00
Guangcong Luo
f1f3040aeb Merge pull request #145 from Joimer/patch-1
Adding 1vs1 Challenge Cup to test via challenge
2013-01-20 06:27:09 -08:00
TheImmortal
136c78cce5 Fix error in previous scripts.js commit 2013-01-20 17:32:51 +04:00
Joim
82fd387692 Adding 1vs1 Challenge Cup to test via challenge
Adding wished for Challenge Cup 1 vs 1. First only available via challenge.
2013-01-20 13:01:39 +01:00
TheImmortal
e4db12341f Update descriptions for items now obtainable 2013-01-20 01:40:27 +04:00
TheImmortal
4e5137b78a Randbats script updates
- Reject Relic Song with setup
- Reject Encore/Pursuit/Stealth Rock/Sucker Punch with RestTalk
- Reject Hydro Pump with Razor Shell/Scald
- Reject Flamethrower with Blue Flare
- Reject Bonemerang/Earth Power with Earthquake
- Make Wynaut/Wobbuffet get Custap Berry 50% of the time with Destiny Bond
- Add the possibility of getting Lum Berry with Outrage
2013-01-19 21:17:03 +04:00
Marty-D
9e89524d8f Update several move descriptions. 2013-01-18 18:48:22 -05:00
Guangcong Luo
8e3ae6bade Merge pull request #138 from MJB47/patch-12
Tornadus T is now uber
2013-01-18 07:14:34 -08:00
Guangcong Luo
d7088e0c9a Merge pull request #139 from MJB47/patch-13
OU suspect test is over
2013-01-18 07:14:28 -08:00
TheImmortal
94a4b0946b Prevent CAP abilities in Hackmons/BH 2013-01-17 22:19:04 +04:00
MJB
f6774e38d8 OU suspect test is over 2013-01-17 14:53:15 +00:00
MJB
ec22951d0e Tornadus T is now uber 2013-01-17 14:51:13 +00:00
TheImmortal
1e14d8df07 Free Jaboca Berry 2013-01-17 18:44:20 +04:00
Cathy Fitzpatrick
03d9da0d5b Use this.effect for constant effect property. 2013-01-15 22:56:45 -07:00
Cathy Fitzpatrick
8f6313a705 This commit makes several changes to Protect and related moves in both
Gen 4 and Gen 5:

1) In Gen 4, the chance of protecting succeeding does not fall below
   1/8, which has now been corrected in this commit. Previously, the
   chance of success in Gen 4 was allowed to drop all the way to
   1/(2**32) as in Gen 5.

   Please see upokecenter for the correct mechanics:
     http://upokecenter.dreamhosters.com/dex/?lang=en&move=182

   For Protect and friends, Smogon currently says that the chance of
   success does not fall below 50%, which is inconsistent both with the
   current Pokemon Showdown! behaviour and with upokecenter. It is
   pretty much certain that upokecenter is accurate here, since it is
   based directly on the in-game data. This commit implements the
   upokecenter mechanics.

2) This commit also consolidates some duplicate code with Protect and
   friends by moving the miss chance logic to an event of the 'stall'
   volatile called onStallMove. This allows me to remove some duplicate
   code from moves.js.

3) Currently, some but not all of Protect and friends have a flag
   called stallingMove set to true. This flag does not appear to be used
   for anything. However, for consistency, I have set it to true for all
   the "stall moves", as opposed to just a subset of them.
2013-01-15 22:33:54 -07:00
Guangcong Luo
d7b28b40ad Fix sometimes incorrect Leech Seed message in doubles 2013-01-14 21:58:10 -08:00
Guangcong Luo
fb4f4e5f9d Slow Start goes away when the ability changes 2013-01-14 19:18:59 -08:00
Guangcong Luo
3b69429f3f Fix crash with Beat Up
(it would crash if, in doubles, a Pokemon in slot 2 that was statused
used Beat Up)
2013-01-14 19:18:59 -08:00
TheImmortal
0e25b08412 Randbats: Prevent Shed Skin + Chesto with Rest 2013-01-15 02:08:54 +04:00
TheImmortal
134910140b Viable moves changes 2013-01-15 02:03:33 +04:00
Guangcong Luo
485446a964 Chansey's been quickbanned in UU 2013-01-13 08:08:02 -08:00
Guangcong Luo
4811087267 Screens are less effective in doubles 2013-01-12 15:22:01 -08:00
Guangcong Luo
acbeada910 Fix Magic Guard 2013-01-11 22:51:22 -08:00
Guangcong Luo
e37792dcf8 Fix bug in spread hit damage calculation 2013-01-11 17:13:00 -08:00
Guangcong Luo
f6f2d0febc Properly fix spread hits and damage reduction 2013-01-11 16:03:51 -08:00
Guangcong Luo
4827a10931 Spread hits only get damage reduction if they spread 2013-01-11 15:57:39 -08:00
TheImmortal
65e0cebf6f Set level before set is validated- maxLevel for LC 2013-01-11 14:03:52 +04:00
Guangcong Luo
39c33e409c Fix the learnset checker to handle chainbreeding better
Specifically, Spikes + Sleep Powder Roserade is no longer legal
Also add more comments to checkLearnset
2013-01-11 01:42:47 -08:00
Guangcong Luo
dd60182a2e Evasion Moves Clause - fix spelling 2013-01-10 20:31:58 -08:00
Guangcong Luo
ff432c40f9 Smogon Doubles doesn't have Moody Clause 2013-01-10 20:31:39 -08:00
MJB
6a0df24a40 Added Evasion abilities clause to OU current
This seemed to be omitted for some reason, fairly sure it should be in effect
2013-01-10 15:09:12 +00:00
Guangcong Luo
1b0f2760b2 Smogon doubles should be a rated format 2013-01-10 02:13:41 -08:00
Guangcong Luo
3598cc277d Implement Smogon Doubles 2013-01-10 00:50:20 -08:00
TheImmortal
3b647dbdfd Update learnset checker 2013-01-10 11:36:00 +04:00
TheImmortal
c4e8fb9632 Fix Little Cup illegalities with DW abilities 2013-01-09 19:48:45 +04:00
Marty-D
ddbd2d37c4 Fix multi-hit moves. 2013-01-08 20:23:21 -05:00
TheImmortal
31d0afce58 Viable moves updates 2013-01-09 01:21:00 +04:00