Commit Graph

57 Commits

Author SHA1 Message Date
Guangcong Luo
2ef5820fb6 Fix immunities activating on secondaries 2012-12-12 08:19:47 -08:00
Guangcong Luo
ba510dea75 Doubles! now in beta
- most remaining Doubles issues have been fixed in this commit
2012-12-12 06:52:12 -08:00
Marty-D
cb0bd2fe11 Fix Selfdestruct and Explosion. 2012-12-08 22:57:14 -05:00
Guangcong Luo
180eaae0b1 PROPER code for 0-damage attacks 2012-12-03 22:44:39 -08:00
Guangcong Luo
ea0b811007 Preliminary code to allow 0-damage attacks to activate secondaries 2012-12-03 04:08:47 -08:00
TheImmortal
c179de4e47 Make Moody get Leftovers in Randbats 2012-11-26 01:10:54 +04:00
TheImmortal
11466ffae3 Prevent Air Balloon with Magnet Rise in Randbats 2012-11-23 22:25:12 +04:00
TheImmortal
f95a461ce0 Randbats update
- Prevent Choice Band with Flame Charge
- Reject Defiant if no Physical moves and no Baton Pass
2012-11-17 00:25:31 +04:00
Guangcong Luo
49c0c785a0 Fix crash when attempting to generate a randbat set with no viable moves 2012-11-15 19:32:34 -08:00
TheImmortal
557a2ce8c8 Randbats update
- Prevent Pluck + Acrobatics
- Make sure setups have more than 1 attacking move
2012-11-15 23:14:16 +04:00
TheImmortal
b34b778870 Randbats change
Forgot to include Switcheroo with Trick to be rejected with setup
2012-11-14 20:44:34 +04:00
TheImmortal
b345ac910e Randbats update
- Prevent Fake Out + Trick/Switcheroo
- Prevent Weather Ball without Sunny Day
- Prevent SolarBeam + Giga Drain
- Prevent Rest + Synthesis
2012-11-14 00:21:44 +04:00
Guangcong Luo
52de2b4d19 Ran a static analyzer, fixed some errors
Specifically, Git Canary: gitconary.com
2012-11-12 15:31:57 -08:00
TheImmortal
ea95915791 More Randbat updates
- Allow Eruption + Fire move
- Prevent multiple moves of same typing
2012-11-12 23:51:08 +04:00
TheImmortal
b9aa2f1f7d Update Randbats script
- Harvest gives Sitrus Berry
- Substitute is prevented with U-turn/Volt Switch
2012-11-11 17:07:54 +04:00
TheImmortal
78c4f4d1ed Prevent Rock Blast + Stone Edge in Randbats 2012-11-07 19:21:04 +04:00
TheImmortal
024ee55318 Prevent Aqua Tail and Waterfall in Randbats 2012-11-05 21:01:50 +04:00
TheImmortal
ef2fc15367 Facade should give Toxic Orb in Randbats 2012-11-04 16:00:10 +04:00
TheImmortal
57e79243ac Update Randbats script
- Prevent Chesto Berry if ability is Natural Cure
2012-11-02 22:04:03 +04:00
TheImmortal
42c1626345 Stored Power is useless in randbats without setup 2012-10-31 19:32:12 +04:00
Guangcong Luo
a42571f751 Format overhaul
- Added Matthew's seasonal ladder
- Renamed "Debug Mode" to "Custom Game" so it's clearer what it's for
- Miscellaneous cleanup
2012-10-30 19:53:04 -07:00
TheImmortal
abcba2828a Prevent Focus Punch without Substitute in Randbats 2012-10-30 16:36:47 +04:00
Marty-D
11851fc38b Make sure OHKO moves do not hit during invulnerable turns. 2012-10-23 21:41:39 -03:00
Antar1011
1f3add6751 Fixed CC's Smeargle moveset problem
Smeargle's movepool is ALL moves, not just Sketch, Sleep Talk and Captivate.
2012-10-18 15:36:44 -03:00
TheImmortal
dc54ad1722 Randbat updates 2012-10-10 02:13:54 +04:00
Guangcong Luo
fb06a15662 Don't deduct multiple PP for multi-turn moves 2012-10-04 19:18:32 -07:00
TheImmortal
790440e4d3 Set Shedinja & Tyrogue to level 99 2012-10-03 00:27:13 +04:00
TheImmortal
c9af6c0f74 Update Random Battle Pokemon levels 2012-09-22 01:23:17 +04:00
Guangcong Luo
0305122004 Random battles fixes:
- several pokemon receive level adjustments
- Guts and Tinted Lens should be slightly less common
- Sheer Force is now filtered (will not be chosen without a move that benefits from it
- Bidoof now gets Moody for the lulz
2012-09-13 22:00:54 -07:00
Antar1011
7ba2086f16 Fixed and verified. 2012-09-13 21:16:30 -04:00
Antar1011
b3c8921696 Possible fix for CC issue. 2012-09-13 21:07:35 -04:00
Guangcong Luo
61a0bd9c09 Make sure self-target moves ignore Soundproof 2012-09-09 00:39:31 -07:00
Marty-D
d8b7aa74f1 Fix U-turn.
In the event that the user and target get KOed in the same turn (Life Orb recoil, Iron Barbs, etc.), make sure the user isn't forced to switch to another Pokemon before the opponent chooses a replacement.
2012-09-03 18:46:02 -03:00
Bill Meltsner
ff985c96fd Make sure to recalculate the target after both ModifyMove events. 2012-08-19 16:58:14 -05:00
Guangcong Luo
a0f10fe811 Two-turn move bugs: pretty much all fixed 2012-08-12 16:31:06 -07:00
Guangcong Luo
01add9ab91 Fix crash in CC with no learnset 2012-08-08 15:14:14 -07:00
Bill Meltsner
643c1c60bd Add Toxic Boost check to the random team algorithm. 2012-07-28 16:47:08 -05:00
Bill Meltsner
e32e4d0660 Fix two-turn move immunities persisting beyond the preparation turn. 2012-07-19 17:34:01 -05: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
Guangcong Luo
2804901d16 Make sure to only allow valid teams 2012-07-15 21:43:18 -07:00
Marty-D
17a6cb4ba8 Multi-hit moves end if the user faints during use. 2012-07-14 13:03:34 -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
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
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
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
Guangcong Luo
c571bf94b3 Updated random battle level scale 2012-07-07 13:20:11 -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