Commit Graph

23714 Commits

Author SHA1 Message Date
TheImmortal
18fcf8d108 Piplup Wi-Fi Event 2012-07-19 16:14:15 +04:00
Bill Meltsner
ba4148cfc7 Fix two-turn moves (mostly).
Two-turn moves are now controlled by a volatile, twoturnmove, which determines whether a Pokemon executes the charge turn or the move turn of a two-turn move. This handles mechanics like Truant Pokemon being unable to use two-turn moves, as the execution turn is their truancy turn. It also handles various edge cases involving moves that call other moves (e.g. Metronome) and Encore.

These changes add a new event, onChargeMove, in which one can return false to "skip" the charging turn and execute the move in full immediately. For example, Solarbeam returns false in onChargeMove if the weather is sunny, and Power Herb returns false if the Pokemon uses its item successfully. (Actually, those are the only two examples at present.)

This implementation is complete except for one issue, an inversion of a previous problem: whereas before, moves like Assist calling two-turn moves would execute them immediately, now, only the charge turn will be executed, and the Pokemon will not be locked into the move. This is due to be fixed soon.
2012-07-18 21:27:43 -05:00
TheImmortal
a0a8d66cf7 Cubchoo viableMoves change
Requested by Great Sage
2012-07-19 04:02:52 +04:00
TheImmortal
b121b94f45 Lightning Rod/Storm Drain actually don't give immunities 2012-07-19 03:59:13 +04:00
TheImmortal
d77d22b24a Lightning Rod/Storm Drain/Synchronize 2012-07-19 03:48:53 +04:00
TheImmortal
bf4e78dc67 Lightning Rod/Storm Drain/Synchronize 2012-07-19 03:45:54 +04:00
TheImmortal
f0382ab95f Some Dream World moves 2012-07-19 03:45:00 +04:00
TheImmortal
cb5d120c64 Fix Eject Button bug
Specifically, interaction between U-turn/Volt Switch and Eject Button
2012-07-18 22:05:38 +04:00
TheImmortal
410f71678c Merge remote-tracking branch 'upstream/master' 2012-07-18 04:59:59 +04:00
The Immortal
43252e7fce Change for Pursuit 2012-07-18 04:58:09 +04:00
The Immortal
d0eb75c757 Fix all Pursuit bugs! 2012-07-18 04:56:59 +04:00
TheImmortal
66839ed7d4 Merge remote-tracking branch 'upstream/master' 2012-07-18 04:51:19 +04:00
TheImmortal
ea70b644b2 Fix all the Pursuit bugs! 2012-07-18 04:50:11 +04:00
Guangcong Luo
9576201df0 Shorter initial scrollback 2012-07-17 17:41:47 -07:00
Guangcong Luo
3f732395a7 Slightly more efficient user list 2012-07-17 17:40:21 -07:00
Guangcong Luo
0db9ffc394 Severely cut down on the number of debug messages 2012-07-17 12:45:25 -07:00
Marty-D
fc834611bb Trace can copy Wonder Guard.
Also clean up the unTraceable Abilities list.
2012-07-17 15:46:09 -03:00
The Immortal
8b0084326f Typo with Pokemon XD event 2012-07-17 20:32:23 +04:00
TheImmortal
9986b39224 Fix Marty's fix for Full Incense/Lagging Tail 2012-07-17 13:09:48 +04:00
Bill Meltsner
d92c7e9ffb Update some out of date Baton Pass-related code.
Fixes Pursuit interacting incorrectly with Baton Pass (that is, at all).

I think this code breaks Baton Pass + Regenerator/Natural Cure, though.
2012-07-17 01:34:24 -05:00
Guangcong Luo
59846cc0ba Fewer debug messages:
Pokemon and Side allocation messages hidden
2012-07-16 22:52:03 -07:00
Guangcong Luo
a47cb7f0d9 Stop asking login server for MMR
should relieve some login server stress
2012-07-16 22:16:43 -07:00
Guangcong Luo
6a4f08f26b New request code - maybe it'll be better on the server? 2012-07-16 17:09:32 -07:00
TheImmortal
5a330be08a Randbat movepool update 2012-07-17 02:57:04 +04:00
Bill Meltsner
e0030dd2f6 Bail if the lag is so bad that a room gets destroyed before it receives confirmation from the ladder server. 2012-07-16 15:58:53 -05:00
TheImmortal
f73a4b37d3 Fix Download & Intimidate activating on fainted Pokemon 2012-07-16 18:38:55 +04:00
Marty-D
e624c947ab Fix Stall. 2012-07-16 11:11:45 -03:00
Marty-D
d8feea3659 Fix Full Incense and Lagging Tail. 2012-07-16 11:10:22 -03:00
Bill Meltsner
567b1eb12d Fix challenges forcing the players into random teams. 2012-07-16 00:42:39 -05:00
Bill Meltsner
29d4511c45 Hack in Foul Play.
This implementation sucks and should be replaced with a proper one as soon as the new damage formula is implemented.
2012-07-16 00:23:47 -05:00
Guangcong Luo
2804901d16 Make sure to only allow valid teams 2012-07-15 21:43:18 -07:00
TheImmortal
047686d917 Add all missing Deoxys moves 2012-07-15 20:41:10 +04:00
TheImmortal
71a386447f Correct immunity message 2012-07-15 18:38:15 +04:00
TheImmortal
70f063d77b Fix Shedinja using Substitute message 2012-07-15 17:32:36 +04:00
Marty-D
17a6cb4ba8 Multi-hit moves end if the user faints during use. 2012-07-14 13:03:34 -03:00
TheImmortal
68d5d2e97c Free Meloetta! 2012-07-14 03:42:21 +04:00
TheImmortal
a81e58437b New Dream World moves 2012-07-14 01:32:31 +04:00
TheImmortal
9756f4498e Berries in B2W2
Apicot/Ganlon/Liechi/Petaya/Salac
2012-07-14 01:20:47 +04:00
Marty-D
c22fb98aa9 Abilities that prevent status can now cure that status as well. 2012-07-13 16:03:27 -03:00
Bill Meltsner
563433bd8f Also don't execute an accuracy check if there's no target. 2012-07-13 10:07:23 -05:00
Bill Meltsner
dd8f7641bf Only execute an accuracy check if one is actually necessary. 2012-07-13 09:41:57 -05:00
Guangcong Luo
37239c99e1 More details about ratings changes are now displayed 2012-07-12 02:31:31 -04:00
Guangcong Luo
a95ee41a72 now displays Glicko2 stats 2012-07-12 02:31:31 -04:00
Bill Meltsner
becc665a32 Oh yeah, Quick Claw needs an activation message too. 2012-07-12 01:23:07 -05:00
Bill Meltsner
cf129204b5 Actually, we have a default activation message, so just use that instead. 2012-07-12 00:01:52 -05:00
Bill Meltsner
cb68403753 Add a placeholder message for Shed Skin.
It doesn't actually have one in the games, as far as I know, but this'll stop people getting confused about seemingly random status curing.
2012-07-11 23:54:19 -05:00
Bill Meltsner
e6cea7a0a8 Implement Quick Claw. 2012-07-11 23:54:19 -05:00
Guangcong Luo
5fc790ac4f Ladder rating difference range decreased to 350 2012-07-11 21:13:28 -04:00
Guangcong Luo
e44a35e4af Cache MMR - should decrease number of requests to server 2012-07-11 21:08:51 -04:00
Guangcong Luo
99aba198c9 Fix many switch-order bugs:
- In double-switches, abilities now activate before the second switch
- When starting or double-faint, abilities activate after all switches
  in speed order
- Double-switches now happen in speed order of the switch-outs
2012-07-11 18:35:43 -04:00