Joimer
f33ff063ab
New seasonal: Make sure templates with baseSpecies resort to it
...
Make sure in case of repeated numbers of species with formes
the baseSpecies is chosen.
2013-09-01 11:48:27 +02:00
Joimer
b6e48e283f
Add new Seasonal, School Schemes
2013-09-01 11:26:56 +02:00
小太
f2f973fe29
Obliterate trailing whitespace
2013-08-18 21:33:15 +10:00
Joim
588df751dd
Improve seasonal team maker
...
Imrpove Average August's team maker taking into account player's feedback on the Seasonal.
2013-08-05 09:54:07 +02:00
Joim
cf29c4ab0c
Improve balance and move choose in Average August
...
The balance right now allows to Kyogre's pirates to win more easily. Fix that and make sure moves are correct.
2013-08-01 13:27:45 +02:00
Joimer
baad1dff93
Add new Seasonal, Average August
...
The previous month's Seasonal, Jolly July, has joined the orphan branch of old-seasonals while we welcome the new Seasonal for the month of August.
2013-08-01 13:01:09 +02:00
Guangcong Luo
ba2610825d
Encore shouldn't change target if move isn't changed
2013-07-29 00:30:20 -07:00
Guangcong Luo
4cff590d6a
Crash more gracefully when a bad name is passed to randomSet
2013-07-04 15:33:11 -07:00
Joimer
cb5b1b6aa3
Seasonal: Remove illegal Pokémon
...
Castform-Sunny forme and Darmanitan-Zen do not have random sets and are illegal, defaulting in Unown, thus shall be removed.
2013-07-05 00:24:58 +02:00
Joimer
723920e260
Add new Seasonal, Jolly July
...
Add the new Seasonal for this month, Jolly July, which features summer and independence days as well as a world travel.
2013-07-04 23:58:19 +02:00
Guangcong Luo
10a69642f7
Fix crash in old Substitute system
2013-07-01 19:54:06 -07:00
Jay2645
c46ea5da3a
Circle Throw is treated like Dragon Tail
2013-06-29 23:57:39 -07:00
Jay2645
2098ea8c7f
Random Battle Choice Scarf fix
2013-06-29 23:15:40 -07:00
Jay2645
129be4e91a
Fixed case where a Pokemon could get Baton Pass without having anything to pass. Also added check for recoil moves before adding Focus Sash and allowed Choice Band/Choice Specs to be considered if you have Trick or Switcheroo and 3 attacking moves of the same category.
2013-06-29 22:08:59 -07:00
Jay2645
7584a01634
Removed unnecessary code, removed unreliable check, cleaned up section of code.
2013-06-29 13:15:08 -07:00
Jay2645
5a3515846f
Removed two lines from an older commit that were no longer being used.
2013-06-29 11:27:57 -07:00
Jay2645
a4965e4062
Updated Random Battle set generation with more comments and system to try and find STAB moves.
2013-06-29 02:58:18 -07:00
Jay2645
41f7a99c4a
Added check to make sure sets have a STAB move (if possible) before being added.
2013-06-28 15:39:58 -07:00
Jay2645
789b10672e
Corrected another typo in comments for Basculin.
2013-06-25 18:17:15 -07:00
Jay2645
a2ec73e549
Corrected typo in comments for Basculin.
2013-06-25 18:13:46 -07:00
Guangcong Luo
93d22073a8
Refactor randbat team generator
...
The main difference here is that the evolution family restriction
has been replaced with a 'limit one of each type combo' restriction.
Every other change is just refactoring.
2013-06-25 17:47:00 -07:00
Guangcong Luo
cd47fccf6d
Revise random battle changes for PS coding style
2013-06-25 17:09:08 -07:00
Jay2645
e4399f3d19
Fixed formatting in Random Battle changes.
2013-06-25 16:52:25 -07:00
Jay2645
0d1b47344a
Modified Random Battle code to prevent unfair teams.
2013-06-25 15:40:05 -07:00
Guangcong Luo
b80cf3b945
Fix Baton Pass failing
2013-06-23 13:05:21 -07:00
Guangcong Luo
8b5e94e06f
Fix an obscure Substitute-related crash
2013-06-20 06:22:30 -05:00
Marty-D
5e0acfb56b
Correct previous commit.
2013-06-19 21:28:50 -04:00
Marty-D
5d1db9bb71
Remove redundant force-switch fail message.
...
- Suction Cups, Ingrain, and Soundproof have their own messages.
2013-06-19 20:41:15 -04:00
Guangcong Luo
0c53bd7e98
Fix self-secondaries not activating
2013-06-19 17:57:27 -05:00
Guangcong Luo
fc9725efad
Show a fail message when force-switch moves fail
2013-06-19 17:29:01 -05:00
Guangcong Luo
d66e619f79
Fix some redundant failure messages
2013-06-17 11:08:47 -05:00
Guangcong Luo
b43ff0b645
Nearly all move failures now display a message
2013-06-16 03:41:00 -07:00
Cathy J. Fitzpatrick
f885d64601
Struggle does not require PP
2013-06-11 17:44:14 -06:00
Cathy J. Fitzpatrick
0aadcf0243
Correct mechanics when trying to use a 0 PP move
...
There are two cases where a pokemon might attempt to execute a move
with zero PP:
- a move which had PP when selected, but whose PP was subsequently
reduced to 0 by Spite; and
- a case where a pokemon has multiple copies of the same move, in
which case it will always be possible to select the move, but it
will not be executed if it has 0 PP.
Attempting to use a move with zero PP should not succeed.
2013-06-11 02:15:26 -06:00
The Immortal
cbf9f36d65
Correct "Swift Swift" mistake
2013-06-04 01:31:00 +04:00
Joimer
cc0efcbc47
June Jubilee: Add Hariyama and Aggron to the Pokémon pool
...
Added Hariyama with Surf and Aggron with Surf to the list of summer Pokémon to June Jubilee as per player request.
2013-06-03 15:15:09 +02:00
Marty-D
cd9e7ae25b
Missed one typo.
2013-06-01 16:30:57 -04:00
Marty-D
60baa43235
Fix Seasonal Pokemon list, take 1v1 out of debug.
2013-06-01 16:18:37 -04:00
Joimer
2031e3f1de
June Jubilee: Fix grammatical mistakes and name mistakes
2013-06-01 20:39:47 +02:00
Joimer
59def7689b
Add new Seasonal: June Jubilee
...
June has a new Seasonal, June Jubilee, which features the coming of summer with all fire type Pokémon, its swarms of bugs, and a little Delibird story.
2013-06-01 20:15:20 +02:00
Antar1011
d4f5143e22
Bugfix: Basculin doubly represented in randbats
...
Because there's basculin and then there's basculinbluestripe
2013-06-01 13:51:30 -03:00
Guangcong Luo
1ea49e7376
Don't crash if Substitute intercepted a status move
...
This is a condition which should never happen in non-modded games
2013-05-27 16:32:52 -07:00
The Immortal
82c52d0ef6
Randbats script update
...
- Add Blaze, Overgrow, Swarm, and Torrent counters
- Prevent Dragon Tail with Roar / Whirlwind
- Allow Simple with Stockpile
- Give Substitute + Reversal a Gem instead of Leftovers
2013-05-06 01:32:29 +04:00
Guangcong Luo
c3a497e341
Remove a redundant check
2013-05-02 02:56:45 -07:00
Guangcong Luo
35ba7b70a2
Fix crash against Substitute
2013-05-01 19:22:12 -07:00
Joimer
f8e3ad9c19
Add new Seasonal Ladder, May Mayhem.
2013-04-30 13:10:41 +02:00
Joimer
af23038f54
Delete old Seasonals and unused suspect test formats
2013-04-30 12:58:41 +02:00
Guangcong Luo
782b497d3c
Fix Encore + Mental Herb interaction
...
This fix involves overhauling how changeDecision works, which also
fixes priority order (and speed ties) getting rerolled when Encore
hits.
2013-04-23 17:21:58 -07:00
Cathy J. Fitzpatrick
cbfc3e5e16
Working implementation of sending exact damage for own pokemon
...
This isn't as elegant as I might like, but it does appear to work.
2013-04-09 03:46:45 -06:00
Guangcong Luo
462a387831
Fix Outrage+Substitute
2013-04-07 10:46:33 -07:00
Guangcong Luo
5039bcea6f
Fix Heal Bell
2013-04-07 10:41:52 -07:00
Guangcong Luo
df7b3d785e
Move results passed up to useMove
...
Move results are now passed all the way up to the useMove script.
It's now possible to tell from within useMove whether or not the move
succeeded.
This fixes a bug where successful Memento and Healing Wish were
considered to have failed and so didn't cause the user to faint.
2013-04-06 19:03:59 -07:00
Guangcong Luo
c663b5eaa5
Fix Substitute for new hit system
2013-04-06 18:27:20 -07:00
Guangcong Luo
3ef4b5c785
Ugly hack to fix burn+Explosion damage
...
Currently, if a burned Pokemon explodes in doubles, all targets except
the first will take full damage, because it's fainted (and no longer
burned) by the time those damage calculations are done.
The correct solution is to do all damage calculations before dealing
any damage, which I will do someday. Today is not that day.
Today, we move fainting the Explosion user to after damage is dealt.
Which, aside from making the faint order wrong, doesn't really have
any other consequences, and is better than the current buggy
damage calculation.
2013-04-06 16:11:15 -07:00
Guangcong Luo
2b1a5540ac
Fix SR for new move hit system
...
Specifically, the TryFieldHit event no longer exists.
Instead, Magic Bounce has separate event handlers for TryHit and
TryHitSide.
This also fixes it so Magic Coat/Bounce happen before ability
absoption (like Water Absorb).
2013-04-06 14:35:31 -07:00
Guangcong Luo
fe2da359e9
Refactor when accuracy is calculated
...
Accuracy is now checked after immunities and certain other effects,
rather than before.
2013-04-06 12:55:38 -07:00
Guangcong Luo
55362a8f81
Gem activation conditions fix
2013-04-06 08:47:21 -07:00
Marty-D
5370068ed7
Make sure Gems don't activate with Status moves.
2013-04-06 10:47:00 -04:00
Guangcong Luo
b0cfddcede
Fix Gems and spread moves
...
Gems now boost all hits of a spread move.
This introduces a new event BasePowerMultiplier, so that gems actually
activate at the right time now.
The name is similar to basePowerModifier but they do the same thing
anyway. We should probably figure something out for their naming,
though.
2013-04-05 23:13:26 -07:00
The Immortal
a14b34864a
Randbats script update
...
- Add Hustle counter
- Prevent a few move combinations
- Prevent Simple without a boosting move
- Prevent Swift Swim/Chlorophyll without Rain Dance/Sunny Day
- Set Combee's ability to always be Honey Gather
- Set Deoxys-D and Deoxys-S to level 74
2013-04-02 22:35:07 +04:00
Cathy J. Fitzpatrick
e45652180b
Remove use of some obsolete functions
2013-03-29 01:27:49 -06:00
The Immortal
0ee5661e1f
Randbats changes
2013-03-26 00:51:59 +04:00
Marty-D
78b489c217
Fix 'selfdestruct' moves again.
...
- Healing Wish and Lunar Dance fail correctly when the user is the last
Pokemon.
- Final Gambit and Memento don't faint the user when used against a
Protecting target.
2013-03-23 23:19:31 -04:00
The Immortal
42118ab5d0
Update Randbats script
...
- Add Adaptability counter
- Prevent a few combinations
2013-03-23 01:56:18 +04:00
Marty-D
b745012c70
Set moveUsed before running useMove.
...
- This fixes Cursed Body, among other things.
2013-03-20 17:22:51 -04:00
Joim
e0c35c85b9
Add April Seasonal random team making script
...
Add the random team maker for the new April Seasonal, Fools Festival.
2013-03-19 12:06:13 +01:00
The Immortal
8e4c14bebb
Randbat script update
...
- Prevent Baton Pass with Switcheroo/Trick
- Prevent Fiery Dance with Fire Blast (Volcarona)
- Prevent SolarBeam without Sun
- Prevent Bolt Strike with Fusion Bolt (Zekrom)
2013-03-17 01:54:46 +04:00
The Immortal
5a60ea4ce1
Randbat script changes
...
- Prevent Cotton Guard with Reflect
- Prevent Light Screen with Calm Mind
- Prevent Choice Scarf with Status moves
2013-03-10 00:17:06 +04:00
Marty-D
a32da9a1f5
Fix Spit Up, tidy up Stockpile.
2013-03-05 15:16:33 -05:00
Guangcong Luo
ce0ffe654e
movedThisTurn overhaul:
...
- now named 'moveThisTurn' and contains the moveid
- this fixes the Outrage issue
2013-03-05 11:27:49 -08:00
Joim
d2745c445b
Bug fixes on Seasonal Ladder Spring Forward
...
Avoid Softboiled being repeated in Chansey and Blissey.
Gems should always be Grass Gem due to Sceptile, and
Barrage and Egg Bomb being Grass-type.
2013-03-03 17:56:38 +01:00
Joim
93973cdc4f
Fix two bugs in Seasonal Spring Forward
...
Add a better item for Toxic Orb Breloom, since no Poison Heal.
Random scripts for Gender is not ready.
2013-03-03 10:32:58 +01:00
Marty-D
0906f7c880
Make sure Challenge Cup Pokemon have a Nature.
2013-03-02 14:11:12 -05:00
Joim
b7af28f566
Add new random team maker for new Seasonal
...
Add the new Random Team maker for the new Seasonal Ladder
for March, Spring Forward
2013-03-01 14:47:16 +01:00
Bill Meltsner
32d9826862
Fix Smeargle's moveset in Challenge Cup.
2013-02-20 22:48:21 -08:00
Guangcong Luo
24db004538
Multi-hit moves now stopped by Sleep
...
(this is an obscure interaction with Effect Spore)
2013-02-20 13:44:13 -08:00
Guangcong Luo
e7e0f8ffec
Berries can now activate between hits of multihit moves
2013-02-20 13:20:58 -08:00
Cathy J. Fitzpatrick
e436d41a49
Fix selfdestruct status moves
2013-02-17 12:47:12 -07:00
Bill Meltsner
f7b3a757fa
Fix No Guard missing against Pokemon in the middle of Fly/Dig/Dive/Shadow Force
2013-02-17 11:41:01 -08:00
Guangcong Luo
53d62da175
Describe the event system in comments
...
also add a few other comments
2013-02-16 22:37:31 -08:00
Guangcong Luo
67b063f910
Fix base power 0
...
Now it actually means 'don't deal damage' rather than 'deal 0 damage'
this removes the need to specialcase secondaries and status moves, too
2013-02-16 21:34:30 -08:00
The Immortal
ed1bd85dd1
Randbat script update
2013-02-17 01:14:09 +04:00
Marty-D
144b97af80
Add support for both types of 'miss' messages.
2013-02-14 16:04:23 -05:00
The Immortal
da3bdadff8
Randbats script updates
...
- Add a few move combinations to be prevented
- If legal, set Swift Swim for Pokemon with Rain Dance
2013-02-14 23:22:02 +04:00
Marty-D
6a10746c34
Fix Jynx for Seasonal Ladder.
2013-02-07 21:45:35 -05:00
Guangcong Luo
cc99883311
Fixes to the seasonal ladder
2013-02-05 14:19:16 -08:00
Joim
277ca65641
Adding Valentine Venture random team selection
...
Added the random team selection for the new Seasonal ladder for
February Valentine Venture (randomSeasonalVVTeam).
It's a doubles ladder that chooses three couples for each player.
2013-02-05 08:33:17 +01:00
Guangcong Luo
561393658b
Fix Spite
2013-01-29 14:55:24 -08:00
Guangcong Luo
a475ea5901
Fix Beat Up crash
2013-01-28 10:27:01 -08:00
Guangcong Luo
3b0ddd2b4d
Implement Pledges
...
This introduces a new function battle.prioritizeQueue which
will move a decision to the front of the queue
2013-01-26 09:22:04 -08:00
Marty-D
0a7dd3cfe4
Add the Pay Day message.
2013-01-25 20:09:48 -05:00
TheImmortal
cbb65b6583
Add isAdjacent function
...
Used to check if two allies are adjacent and have not fainted
2013-01-25 21:07:39 +04:00
Guangcong Luo
b67454743b
Hidden Power fix:
...
- Random battles and automatic detection sets Hidden Power IVs correctly
- Hidden Power now always does damage based on user's IVs
- User's Hidden Power base power is now reported
2013-01-24 15:03:04 -08:00
Joim
27acbf931f
Pichu-Spiky-eared shouldn't appear in random teams
...
Pichu-Spiky-eared has been excluded from the random team forming as it is not available in BW2.
2013-01-23 18:19:36 +01:00
Marty-D
88caef8914
Make sure multi-hit moves count each hit's damage separately.
2013-01-22 19:37:58 -05:00
TheImmortal
136c78cce5
Fix error in previous scripts.js commit
2013-01-20 17:32:51 +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
TheImmortal
0e25b08412
Randbats: Prevent Shed Skin + Chesto with Rest
2013-01-15 02:08:54 +04: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
Marty-D
ddbd2d37c4
Fix multi-hit moves.
2013-01-08 20:23:21 -05:00
TheImmortal
e8e8acbc26
Randbats: Set Snover to level 95
2013-01-08 23:43:04 +04:00
TheImmortal
b52cb1e272
Randbats: Prevent Choice Band + Rapid Spin
2013-01-08 21:05:57 +04:00
Marty-D
01906be31e
Fix Normal Gem + Explosion, Red Card / Eject Button for real.
2013-01-08 12:01:00 -05:00
TheImmortal
75bd51d3c4
Randbats: Reject Hustle if no Physical moves
2013-01-05 17:24:23 +04:00
Marty-D
46da54c7cd
Make sure Normal Gem + Explosion works.
2013-01-04 12:17:22 -05:00
TheImmortal
5ef646c5ec
Randbats: Reject Prankster if no Status moves
2013-01-04 15:23:40 +04:00
TheImmortal
dc29863351
Use Sheer Force counter for Serene Grace as well
2012-12-28 00:09:05 +04:00
Guangcong Luo
821ef0aed8
Some fixes to accuracy calculation
2012-12-16 11:42:56 -08:00
Guangcong Luo
7dbe93dcf2
Implement Snatch
2012-12-14 14:44:55 -08:00
Guangcong Luo
87cd851adf
Seasonal ladder: nerf Victini
2012-12-14 14:44:55 -08:00
Guangcong Luo
7ed88a77a3
New seasonal ladder: Winter Wonderland
2012-12-14 14:44:55 -08:00
Guangcong Luo
e68507d627
Implement Follow Me
2012-12-13 16:37:10 -08:00
Guangcong Luo
54bcd9ab33
Make sure a Pokemon faints properly after using Explosion
2012-12-13 04:10:14 -08:00
Guangcong Luo
7ed807aacc
Fix crash with one pokemon in doubles
2012-12-13 03:11:44 -08:00
Guangcong Luo
02d2c1cba8
Normal Gem Explosion now works correctly
2012-12-13 02:26:13 -08:00
Guangcong Luo
79c1419f2a
Spread moves hit allies before foes
2012-12-12 12:45:35 -08:00
Guangcong Luo
7625846be7
Proper implementation of Follow Me, Lightningrod et al.
2012-12-12 11:55:30 -08:00
Guangcong Luo
721f038c3e
Explosion KOes self even without a target
2012-12-12 11:23:25 -08:00
Guangcong Luo
4edd2ddfac
Fix the order of selfdestruct, drain, and recoil when used by moves
2012-12-12 10:06:56 -08:00
Guangcong Luo
943e79d44e
Fix intermittent crash in seasonal ladder
...
('alteria' was spelled incorrectly)
2012-12-12 08:19:48 -08:00
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
Guangcong Luo
cb4aae18a3
formats.js can now list alternate gens
2012-06-16 15:50:34 -07:00
Guangcong Luo
b3054fefdf
Load all data using tools.js
...
- the original names BattleItems etc have been deprecated; please use:
- Tools.getItem() accessor method if possible
- Tools.data.Items for lower-level access (e.g. iteration)
- app.js was also rearranged a bit
2012-06-13 22:51:37 -07:00
Guangcong Luo
cbde94b6a6
Let Tools install itself and scripts into Battles
2012-06-13 22:25:26 -07:00
Bill Meltsner
26669add8a
Don't swap out rejected abilities if the alternative is also useless.
2012-06-12 22:18:02 -05:00
Bill Meltsner
9bbb0b8d56
Convert battles to use the new, cartridge-simulating RNG.
...
Non-battle randomness is still based off of Math.random().
2012-06-12 03:47:14 -05:00
Guangcong Luo
7009b3a4bb
Revert bmelts's hasty porting of Id etc to Sugar.js extensions
...
- The reverted utility functions, toId/toUserid/sanitize/clampIntRange, were designed to handle unsanitized data gracefully
2012-06-08 15:44:49 -07:00
Guangcong Luo
e73c587e7d
Move a bunch of files into data/
...
also take this opportunity to rename movedex.js -> moves.js
2012-06-08 14:25:45 -07:00