Commit Graph

278 Commits

Author SHA1 Message Date
TheImmortal
a13676f8ac Snatch implementation 2012-07-22 04:01:30 +04:00
Bill Meltsner
4447749568 Fix Gravity's interactions with affected two-turn moves (Fly, Bounce, Sky Drop). 2012-07-19 17:39:13 -05:00
Bill Meltsner
e32e4d0660 Fix two-turn move immunities persisting beyond the preparation turn. 2012-07-19 17:34:01 -05:00
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
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
ea70b644b2 Fix all the Pursuit bugs! 2012-07-18 04:50:11 +04: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
TheImmortal
5a330be08a Randbat movepool update 2012-07-17 02:57:04 +04: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
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
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
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
Marty-D
0adf419599 Fix rounding for some healing items. 2012-07-11 14:55:28 -03:00
Bill Meltsner
2e75e80bc0 Enable happiness when creating a Pokemon, and actually derive Frustration/Return's base power from it. 2012-07-10 18:16:13 -05:00
Marty-D
d250ced19a Fix up some Ability-changing moves' banlists. 2012-07-10 17:54:58 -03:00
Guangcong Luo
02dc1b6343 Make sure illusion/multitype/wg aren't swappable 2012-07-10 15:38:41 -04:00
TheImmortal
3117467e64 First turn of Dive prevents Hail/Sandstorm damage 2012-07-10 22:30:41 +04:00
TheImmortal
92a636968b First turn of Dig prevents Hail/Sandstorm damage 2012-07-10 22:22:00 +04:00
Antar1011
023183a133 Took out debug line 2012-07-10 09:58:49 -04:00
Antar1011
0d5db9483a Challenge Cup 2012-07-10 09:47:35 -04:00
Antar1011
08a03f1b30 Snover and Hippopotas are now "LC" instead of UU (allowed in any standard tier) 2012-07-10 07:40:03 -04:00
Antar1011
95f997608e DW UU Updates 2012-07-10 07:26:50 -04:00
Bill Meltsner
1f00e0daf2 CAP should be BW2 meta, apparently. 2012-07-09 23:17:48 -05:00
Bill Meltsner
66636da307 The Mollux playtest is over. 2012-07-09 22:16:01 -05:00
TheImmortal
10915a7790 Kyurem-B & Kyurem-W are banned from DW OU 2012-07-09 00:23:20 +04:00
Guangcong Luo
e1eddbd77f Pass the team around very carefully
- teams were passed around a lot more haphazardly before
- a race condition may have caused the team issue in LC earlier
- teams are now passed very carefully from search to battle start
2012-07-08 15:28:17 -04:00
Bill Meltsner
6f9469c898 Fix NFE level scaling in randbats. 2012-07-08 12:23:47 -05:00
Bill Meltsner
eb153e7427 Implement recursive rules for formats.
A format will inherit rulesets and banlists from any rules specified in its ruleset which contain their own rulesets or banlists. For instance, UU can inherit OU's rules and bans, while adding its own tier bans and weather bans.
2012-07-08 02:40:00 -05:00
Bill Meltsner
eb28c7eb2d Factor out OHKO and Evasion bans into clauses. 2012-07-08 02:39:59 -05:00
Bill Meltsner
3dc7be8520 Implement Freeze Clause. 2012-07-08 02:39:58 -05:00
Bill Meltsner
0bfb16e87d Fix DW tier names. 2012-07-08 02:39:56 -05:00
Bill Meltsner
4f7ee84bd6 Capitalize Pokemon.
IT MATTERS, OKAY?!
2012-07-08 01:14:30 -05:00
Bill Meltsner
0369dad818 Add moves obtainable from Pokemon XD: Gale of Darkness. 2012-07-07 20:12:13 -05:00
TheImmortal
cd025d6981 Moves blocked by Substitute
- Acupressure is not blocked by Substitute
- Flatter is already blocked because of the boosts/confusion
- Heal Pulse is blocked by Substitute
- Swagger is already blocked because of the boosts/confusion
2012-07-08 02:55:00 +04:00
TheImmortal
35b4c3b6ca Dream World moves update 2012-07-08 02:15:25 +04:00
Guangcong Luo
5efcc49ae8 Reintroduce Basculin-B
(apparently it isn't fully aesthetic)
2012-07-07 17:51:04 -04:00
Guangcong Luo
307b2e7c40 Update pokedex.js:
- only base formes get an otherFormes list
- base forme names are stored in baseForme
- Genesect formes are now stored
2012-07-07 17:39:26 -04:00
Guangcong Luo
c571bf94b3 Updated random battle level scale 2012-07-07 13:20:11 -04:00
小太
580a0546ea Allow random teams with haxmons and show haxmons for challenges 2012-07-07 14:16:58 +10:00
TheImmortal
615d48001c Correct Substitute blocked message 2012-07-07 01:53:32 +04:00
TheImmortal
e6e95e3feb Correct Soundproof immunity message 2012-07-07 01:50:50 +04:00
Guangcong Luo
125ede327f Gen next changes:
- several bugfixes and new features
- see GEN-NEXT.md for details
2012-07-06 16:50:20 -04:00
Marty-D
0dace78d96 Fix Present's healing amount. 2012-07-06 17:01:14 -03:00
Marty-D
3573b6907a Fix Present's descriptions.
Not sure why I trusted Bulbapedia on this when the right mechanic is in their animated gif -_-
2012-07-06 16:18:31 -03:00
Guangcong Luo
d8c4c92d04 More fixes to NEXT:
- see GEN-NEXT.md for details
2012-07-06 05:07:24 -04:00
Guangcong Luo
3b004b9530 Horrible stopgap fix to make Power Herb not activate for SolarBeam in sun 2012-07-05 21:24:11 -04:00
TheImmortal
8b2a1b7227 DW updates + Learnset errors 2012-07-06 01:01:35 +04:00
Guangcong Luo
21cdf0dd8e Add Gen Next to formats 2012-07-05 13:33:12 -07:00
Guangcong Luo
c431b7d769 Rename the gen 4 formats: mod should go at the beginning 2012-07-05 13:33:11 -07:00
TheImmortal
3ef8de6da7 Set Castform & Cherrim forms to Illegal 2012-07-05 01:39:38 +04:00
TheImmortal
764602bb7b Dream World updates 2012-07-04 23:41:11 +04:00
TheImmortal
f7d8d86cc2 Ganlon Berry is released 2012-07-04 01:12:55 +04:00
TheImmortal
f40f64301a Leech Seed immunity message + moves blocked by Sub 2012-07-04 00:23:55 +04:00
Bill Meltsner
98b5775198 Reorder the various checks about whether a move hits or not, and add an immunity check before any move calculations are done.
A move cannot "miss" if there is no target, and if the target is immune to an attack, the game always displays the immunity message - the move will never register as "missing".

This fixes a bug where a Pokemon with a type-absorbing ability (e.g. Volt Absorb) behind a Substitute would not absorb status moves (e.g. Thunder Wave) - they'd be blocked by the Substitute before the immunity check was ever run.

There is still a graphical glitch where if a move fails its accuracy check against an immune opponent, the animation will still be that of the move missing, even though the text will be the immunity text. I'm not sure how to fix that given the current move message format.
2012-07-03 05:25:29 -05:00
Bill Meltsner
4ffca358fb Fix Relic Song preventing other Pokemon from transforming into Meloetta after its use. 2012-07-03 01:25:00 -05:00
Bill Meltsner
9b47cc9446 Overhaul Forecast to work more intelligently and to actually transform Castform instead of faking it (for better compatibility with things Transforming into it). 2012-07-03 01:24:25 -05:00
Bill Meltsner
bdf4acda55 Fix Trace, for real this time. Honest. 2012-07-02 20:07:00 -05:00
Bill Meltsner
a133ff8037 Rewrite Illusion to run on its own event.
Fixes issues with timing and switching to an Illusion Pokemon when that Pokemon is last in your team.
2012-07-02 20:06:57 -05:00
TheImmortal
ee238e2aa5 Some DW moves 2012-07-03 04:33:29 +04:00
TheImmortal
f7118acfdf Dream Eater not blocked by Sub. + correct message 2012-07-02 23:34:34 +04:00
Marty-D
42d0eeebf6 Fix Teeter Dance.
Teeter Dance no longer goes through Substitute and is no longer reflected by Magic Coat/Bounce.
2012-07-02 13:43:06 -03:00
Guangcong Luo
89da954e10 Merge pull request #73 from kotarou3/haxclauseFix
haxclause fix
2012-07-02 06:01:31 -07:00
Bill Meltsner
0ea1c82a51 Actually fix Trace properly. 2012-07-02 03:02:10 -05:00
小太
4966ac4e6d haxclause fix 2012-07-02 17:46:52 +10:00
TheImmortal
2cadc3e2e3 Make Trace work properly 2012-07-02 11:46:44 +04:00
Marty-D
c262e7da56 Revert part of 'Proper Trace implementation'
Crashes the server if anyone leads with a Trace user.
2012-07-01 22:01:12 -03:00
TheImmortal
6b07fdf6db Proper Trace implementation 2012-07-02 03:44:07 +04:00
TheImmortal
116e2c690b Dream World updates 2012-07-02 03:43:29 +04:00
Bill Meltsner
988261373b Make Marty's Roost fix a little more concise. 2012-07-01 18:22:23 -05:00
Bill Meltsner
ba147b5cb1 Some move message fixes for use with the updated client. 2012-07-01 18:12:12 -05:00
Marty-D
d9f0cfaf79 Roost fix for Gen V. 2012-07-01 20:04:13 -03:00
Bill Meltsner
b79c6614ad Fix Sleep Clause message. 2012-07-01 18:00:26 -05:00
Bill Meltsner
a60e4d024f July 2012 tier updates. 2012-07-01 02:00:46 -05:00
TheImmortal
1cb4e3283e Dream World updates 2012-07-01 02:15:25 +04:00
Bill Meltsner
2d468e8a6e Fix forme names in DW OU/UU banlists. 2012-06-30 15:31:14 -05:00
Marty-D
52606fa3e7 Normalize has no effect on Struggle. 2012-06-29 20:54:16 -03:00
TheImmortal
251589cfde Griseous Orb fixes 2012-06-29 23:26:39 +04:00
Marty-D
4b47c3f67a Klutz actually does ignore all of Iron Ball's effects. 2012-06-28 22:31:58 -03:00
TheImmortal
e12050c790 More Dream World 2012-06-29 01:54:45 +04:00
TheImmortal
c843e67c56 Frisk doesn't show a message if target has no item 2012-06-28 23:22:08 +04:00
TheImmortal
39a92d3762 More DW I missed in previous commit 2012-06-28 02:34:03 +04:00
TheImmortal
19b7cf4088 More DW that I missed in previous commit 2012-06-28 02:31:02 +04:00
TheImmortal
7b6c061d24 Even more Dream World releases 2012-06-28 02:04:24 +04:00
Antar1011
13e4a1b5cf Added Dream World tiers 2012-06-27 02:33:23 -03:00
TheImmortal
7b69d376bb Dream Radar Pokemon 2012-06-27 02:33:12 +04:00
Bill Meltsner
41cbf1ed91 Gen 4 cover legendaries are catchable in the Dream Radar. 2012-06-26 14:17:35 -05:00
Bill Meltsner
5f0514e9b7 Fix typos in the last commit breaking everything. 2012-06-26 12:44:54 -05:00
The Immortal
36670f11d0 Even more DW releases!
Imposter Ditto :O
2012-06-26 16:48:23 +04:00
Bill Meltsner
dce8dba0de More DW releases!
Techniloom is finally here :D
2012-06-25 22:16:09 -05:00
Bill Meltsner
ee35774ead Fix a crash in Encore 2012-06-25 22:05:21 -05:00
Bill Meltsner
75259ef4e2 Belly Drum should fail if the user's attack is already maximized. 2012-06-25 21:33:46 -05:00
Bill Meltsner
b238b24f45 Effect Spore does not have equal chances of each result. 2012-06-25 21:30:33 -05:00
Bill Meltsner
52a9c86120 Merge pull request #69 from TheImmortal/master
BW2 + DW Updates
2012-06-25 19:25:39 -07:00
Bill Meltsner
548bdbc79c Soul Dew is released. 2012-06-25 21:19:31 -05:00
Bill Meltsner
8b2a5b7530 Make Encore not break with Hidden Power.
This is technically inaccurate, but while Hidden Power is still brokenly implemented, better to compensate for it.
2012-06-25 20:19:00 -05:00
TheImmortal
d693313133 More DW 2012-06-26 02:41:40 +04:00
TheImmortal
7a67ba7730 BW2 + DW updates 2012-06-26 00:58:03 +04:00
Guangcong Luo
4ab519c94f Make sure Arceus is sent correctly in team preview 2012-06-24 19:46:18 -07:00
Bill Meltsner
2e2052ceba Add the Mollux playtesting tier. 2012-06-24 12:40:07 -05:00
Bill Meltsner
5780d2974d In-game event pokemon in BW2. 2012-06-23 23:21:47 -05:00
Bill Meltsner
d8cd1753ed More discovered DW releases. 2012-06-23 23:21:21 -05:00
Bill Meltsner
c006d3a788 With the banning of Sand Stream, Hippowdon is UU again. 2012-06-23 17:57:03 -05:00
Bill Meltsner
9166a3b057 New BW2 TM moves. 2012-06-23 16:56:43 -05:00
Bill Meltsner
24ae6d5401 Revert "Automatically decide between Keldeo and Keldeo-R"
This reverts commit 78548ce010.
2012-06-23 16:27:40 -05:00
Guangcong Luo
78548ce010 Automatically decide between Keldeo and Keldeo-R 2012-06-23 13:35:51 -07:00
The Immortal
9e05c4e80b Kyurem-B/W aliases 2012-06-24 00:31:33 +04:00
Bill Meltsner
f8a655786c Add Kyurem formes' learnsets.
The Kyurem formes get Fusion Bolt/Flare and Freeze Shock/Ice Burn *in place of* Glaciate and Scary Face, so checkLearnset should not recurse down to the base Kyurem forme.
2012-06-23 12:25:26 -05:00
Bill Meltsner
b5c1e1f44e More DW move releases. 2012-06-23 12:22:08 -05:00
Bill Meltsner
c9746241b2 Keldeo-Resolution should be usable, but only with Secret Sword. 2012-06-23 12:18:56 -05:00
The Immortal
41d5b1dddf Female DW Croagunk 2012-06-23 15:14:00 +04:00
Guangcong Luo
4001463370 Only show debug messages in debug mode 2012-06-23 00:59:42 -07:00
Bill Meltsner
9d5e5fccba Add BW2 level up moves, plus a missed DW move. 2012-06-23 01:46:11 -05:00
Guangcong Luo
6671d2da1b Salac Berry has been released 2012-06-22 22:04:22 -07:00
Bill Meltsner
9342650829 DW release party! 2012-06-22 23:37:35 -05:00
Bill Meltsner
83606de39f Temporarily ban Freeze Shock and Ice Burn from Balanced Hackmons until we get our act together with two-turn moves. 2012-06-22 22:49:10 -05:00
Guangcong Luo
d13aa3613a In my excitement I made a few typos 2012-06-22 16:37:36 -07:00
Bill Meltsner
e80b207533 UU banned Sand Stream. 2012-06-22 18:26:57 -05:00
Guangcong Luo
a7ce2e471b NEW B2W2 TUTOR MOVES OMGOMGOMG 2012-06-22 16:14:53 -07:00
TheImmortal
213716dacf Therian Formes aliases and sorted alphabetically 2012-06-23 01:16:24 +04:00
Bill Meltsner
c9714159eb More DW releases. 2012-06-22 15:16:32 -05:00
TheImmortal
91dd526586 DW Releases 2012-06-23 00:10:18 +04:00
Bill Meltsner
4231595b74 Starting tiers for the new formes.
Everything is OU for now, except the Kyurem formes.
2012-06-22 15:04:18 -05:00
Bill Meltsner
4d1aca7bcb Flag new formes as Unreleased until BW2 is out and they're given an official tier, even a temporary one. 2012-06-22 13:30:27 -05:00
Guangcong Luo
7d437ad7ee Fix a validation crash on a pokemon
- a pokemon without a formats-data would crash
- because SOMEONE doesn't know how templates work ;)
2012-06-22 09:42:22 -07:00
The Immortal
14487aa8f4 Tornadus/Thundurus/Landorus Therian Formes Stats 2012-06-22 20:07:35 +04:00
Bill Meltsner
b0e494cbfd The official English name for the new Genie formes is "Therian" forme.
I know, right?
2012-06-22 05:22:12 -05:00
Bill Meltsner
3ec053a5b9 fixing pokedex.js for merge 2012-06-21 20:15:00 -07:00
Bill Meltsner
c7a27b9a8e Kyurem-B/W base stats confirmed. 2012-06-21 21:57:59 -05:00
Guangcong Luo
d3805dd50a New Kyurem stat spreads working now 2012-06-21 18:26:03 -07:00
Bill Meltsner
a33f4e5dd4 Fix some Encore mechanics:
- Encore will fail if the move to be Encored has 0 PP, and will end automatically if the move runs out of PP while Encore is in effect.
- Encore will fail if the move to be Encored is Encore, Mimic, Mirror Move, Sketch, or Transform. (This prevents Magic Bounce + Encore causing trouble.)
- Encore will fail if the target doesn't actually have the move to be Encored.
2012-06-21 03:49:09 -05:00
Bill Meltsner
17b6c53e92 Encore now lasts the proper number of turns. 2012-06-21 03:21:54 -05:00
Bill Meltsner
2c9aa8e842 Hide Arceus formes in Team Preview.
This is to better match the cartridges, which only display the icons in team preview, thus making it impossible to tell what forme a given Arceus is in. The real forme of the Arceus is still visible to the owner when mousing over the button (and in the name if the Pokemon isn't nicknamed).
2012-06-21 02:52:21 -05:00