Commit Graph

7481 Commits

Author SHA1 Message Date
Guangcong Luo
f522c006d5 Merge pull request #1534 from ascriptmaster/move-fixes
(Minor) Add a [still] tag to Sky Drop's preparation turn
2015-02-18 13:48:48 -06:00
The Immortal
6e981e090d Merge pull request #1535 from ascriptmaster/randoms
Random Battle: Update Unfezant
2015-02-18 23:42:03 +04:00
Kevin Lau
ae80be8cf0 Random Battle: Update Unfezant
- Force Super Luck on Unfezant (it has a 33% chance of getting Big Pecks)
- Force Scope Lens on Unfezants with enough attacking moves
- Give Unfezant Night Slash
- Replace Wish with Roost in Doubles
2015-02-18 11:39:46 -08:00
The Immortal
9115982978 Random Battle: Reject speed setup without enough attacking moves
Also, not sure why Baton Pass was prevented with Trick. I can't remember
why I added that because it was probably long ago.
2015-02-18 22:50:38 +04:00
The Immortal
a9723181fa Random Battle: Update item for Eruption / Water Spout
It already gets Choice Scarf/Specs from the check above if it has no
status moves.
2015-02-18 21:51:58 +04:00
The Immortal
e2beae32b9 Random Battle updates
- Reject Water Spout and Eruption with setup or RestTalk
- Allow Origin Pulse with RestTalk
- Give Extremespeed users and Sucker Punch users without STAB Life Orb
instead of Expert Belt
- Prevent Life Orb with Dragon Tail
- Low priority: give Leftovers to Pokemon weak to Stealth Rock
2015-02-18 21:37:45 +04:00
The Immortal
ef40729760 Gen 1 Random Battle: Oddish/Gloom can't learn Body Slam 2015-02-18 16:42:36 +04:00
Kevin Lau
afa73439ee (Minor) Add a [still] tag to Sky Drop's preparation turn 2015-02-17 23:45:31 -08:00
The Immortal
141a66339a Remove Sky Battle
Found out that it is just an XY format and ORAS allows anything in the
sky. No point in keeping it if it is no longer an OM and for an old
game.
2015-02-17 15:24:15 +04:00
The Immortal
4aa23ed075 Properly add the event Tyrunt 2015-02-17 15:21:40 +04:00
Joimer
b9c991f0e1 Release Tyrunt and Tyrantrum's hidden ability 2015-02-17 12:04:34 +01:00
Guangcong Luo
67cc8ad34e Merge pull request #1533 from ascriptmaster/randoms
Random Battle: Add Scope Lens to Super Luck Pokemon (low-priority)
2015-02-17 03:50:29 -06:00
Kevin Lau
ecb82454fa Random Battle: Add Scope Lens to Super Luck Pokemon (low-priority)
Super Luck + Scope Lens gives a 50% chance of crit, but isn't a very high
priority since a consistent damage boost from a Choice item can be a
better pick.
2015-02-16 22:58:29 -08:00
Guangcong Luo
8732818086 Merge pull request #1530 from ascriptmaster/move-fixes
Fix Lock On and Telekinesis in Doubles
2015-02-17 00:38:01 -06:00
Guangcong Luo
552debcac7 Merge pull request #1528 from Slayer95/mocha
Implement Mocha-based test suite
2015-02-17 00:36:45 -06:00
Guangcong Luo
6c68099c2f Merge pull request #1529 from Slayer95/seed-logging
Save RNG initial state in battle logs
2015-02-17 00:31:32 -06:00
Quinton Lee
d68126cf36 Correct Natural Gift base power in past gens
Belue Berry's base power was also accidentally changed in https://github.com/Zarel/Pokemon-Showdown/pull/549
2015-02-16 19:38:58 -06:00
Kevin Lau
8e8d62088d Fix Lock On and Telekinesis
Fixed Lock On to allow multiple Pokemon to target the same Pokemon, and
causing it to fail if a Pokemon already has a Lock On active.

Fixed Lock On and Telekinesis to work properly with multi-hit moves and
target redirection.
2015-02-16 17:30:15 -08:00
Quinton Lee
7c5fcf3b72 Correct Natural Gift types in past gens
Accidentally changed to the wrong types in https://github.com/Zarel/Pokemon-Showdown/pull/549
2015-02-16 15:04:35 -06:00
The Immortal
5ad391c5cb Revert part of d46dbe58a0 2015-02-16 23:21:55 +04:00
The Immortal
102b762d1a Update Sky Battle
It now follows the in-game rules, rather than being an OM. Also moved it
to the bottom of the OM list.
2015-02-16 23:14:45 +04:00
The Immortal
c34ec4b133 Random Battle: Reject Focus Blast with RestTalk 2015-02-16 17:51:25 +04:00
The Immortal
c739a9032a Merge pull request #1526 from ascriptmaster/randoms
Random Battle Updates
2015-02-16 15:02:57 +04:00
Juanma Serrano
f490a12581 Gen 1 RandBats: Remove reminder of partial trapping moves 2015-02-16 10:48:36 +01:00
Juanma Serrano
3491f5a7c0 Gen 1: Make sure last damage is cleared properly on misses 2015-02-16 10:47:29 +01:00
Kevin Lau
d46dbe58a0 Random Battle Updates
- Lumineon and Poliwrath have Storm Drain and Water Absorb respectively,
  which is always chosen over Swift Swim, so Rain Dance is unneccessary.
- Give Pokemon with Unburden a Focus Sash
- Give Unburden mons with stat-lowering moves a White Herb (specifically
  targets Sceptile)
2015-02-16 01:20:36 -08:00
Ivo Julca
5b689c0eb0 Random Battle: ensure max IVs for sets without Hidden Power 2015-02-15 18:45:44 -05:00
The Immortal
023afbff74 Modify Mega Abomasnow's Random Battle moves
It wants Blizzard, which it doesn't get with Swords Dance.
2015-02-15 22:54:37 +04:00
Ivo Julca
5508777d97 Add first few battle simulation tests 2015-02-15 13:35:43 -05:00
Ivo Julca
18ee206833 Add some basic application tests 2015-02-15 13:28:03 -05:00
Ivo Julca
88c74abe76 Implement Mocha-based test suite 2015-02-15 13:27:36 -05:00
The Immortal
cd6ed5993f Reduce Flare Boost rating
Drifblim almost never runs it. And even in formats that allow any
ability, it isn't even used half as much as Guts. Lack of a Special
Facade is probably why.
2015-02-15 22:27:12 +04:00
Ivo Julca
fa62692c00 Make app.js dependant-friendly 2015-02-15 13:26:37 -05:00
The Immortal
f126ce9e50 Random Battle: Prevent RestTalk + Rain Dance/Sunny Day 2015-02-15 22:05:34 +04:00
The Immortal
71fc094d36 Forgot this in the previous commit 2015-02-15 21:57:30 +04:00
The Immortal
15fbafeb2f Random Battle updates
- Added speedsetup counter
- Improve Weakness Policy selection (might give it to more than just
speedsetup later on but this is much better than the previous
implementation that gave it to very bad sets)
- Added Lustrous Orb as a low priority option for Palkia
- Slightly increased defensive requirement of Assault Vest
2015-02-15 21:23:24 +04:00
The Immortal
85f7d4c172 Random Battle: Reject Explosion with Wish
Affects Lickilicky.
2015-02-15 15:43:53 +04:00
Ivo Julca
b810465c97 Sync parameters for randomSet functions 2015-02-15 01:05:03 -05:00
Ivo Julca
1deedc5952 Improve performance and debuggability of random team makers
- 30% more op/s for randomTeam, randomDoublesTeam and randomCCTeam
- 300% more op/s for randomHackmonsCCTeam
- Implement helper method `sampleNoReplace`: takes an array parameter, removes a random element and returns it.
- Random team makers now follow the game RNG. Therefore, it's now possible to reconstruct the teambuilding process for bad sets, given that the starting seed is known.
2015-02-14 23:22:27 -05:00
The Immortal
845e681e85 Random Battle: Fix cases of repeating moves
In Graveler's case, it can't learn Heavy Slam.
2015-02-15 02:34:26 +04:00
Ivo Julca
968acffd5d Save RNG initial state in battle logs 2015-02-14 17:07:28 -05:00
The Immortal
e7c74ca15f Random Battle: Fix Arceus having horrible sets 2015-02-15 01:56:45 +04:00
The Immortal
ab07e9b7a5 Random Battle updates
Went through all fully-evolved Pokemon and updated their moves. Also
removed illegal moves on several Pokemon...

- Added Superpower to SetupException
- Reject Water Pulse with Scald
- Reject Acrobatics with Hurricane
- Prevent Focus Blast and Superpower together
- Reject Physical moves with Acid Spray (only affects Eelektross)
- Do not reject Baton Pass with Protect
- Reject Healing Wish with setup
- Reject Hydro Pump with RestTalk
- Prevent Precipice Blades with Earthquake
2015-02-15 01:40:57 +04:00
Guangcong Luo
2ea6963f03 Merge pull request #1527 from Slayer95/resolve-decision
Choice parsing: support turn timeout decisions
2015-02-14 02:19:27 -06:00
Guangcong Luo
a5d00a5eab Merge pull request #1519 from ascriptmaster/primal
Weather Refactor: Regular weathers don't activate w/ Primal Weather set
2015-02-14 01:49:42 -06:00
Ivo Julca
1e6d387cf7 Choice parsing: 'default' is now a valid choice for move requests
- Its result is equivalent as timing out on own turn in-game: it forces the Pokémon, as well as any remaining active Pokémon to use their first available move, and target randomly. To maximize similarity, this decision is not be cancelable.
- Reject move choices in Doubles/Triples that don't specify a target when required.
- 'default' is not implemented -but reserved- for switch requests as it's currently no different from choosing the next available Pokémon.
2015-02-13 19:43:28 -05:00
Ivo Julca
b9137d5d37 Implement BattleSide#resolveDecision
It will be useful to support decision fallbacks for turn timeouts.
2015-02-13 19:43:10 -05:00
The Immortal
593da58644 RU is having a suspect test 2015-02-14 01:18:15 +04:00
The Immortal
1a76c6001b Random Battle: Reject Hidden Power as the only damaging move
It is only acceptable with STAB, such as Unown or Lunatone.
2015-02-13 16:39:25 +04:00
The Immortal
95d9df4611 Random Battle changes
Fixes #1524
- Modify Lumineon's moves; it is far too weak for Hidden Power to be
useful
- Add 5a131be906 to singles like I
originally meant to
2015-02-13 13:40:23 +04:00