Commit Graph

45 Commits

Author SHA1 Message Date
Marty-D
d00ed0c5c5 Fix trailing whitespace from cf295251a1 2015-07-24 21:26:28 -04:00
Pikachuun
cf295251a1 Fix Flower Gift 2015-07-24 20:03:25 -04:00
Kevin Lau
b310eb00b9 Add Intimidate test for double-KOs 2015-07-19 16:54:55 -07:00
Guangcong Luo
0eb6f4b244 Merge pull request #2006 from ascriptmaster/move-fixes-2
Fix PP deduction interactions with Pressure
2015-07-17 13:40:19 -05:00
Kevin Lau
913704c3ac Release and update Pressure tests
Added a check for Harsh Sun/Water moves failing and deducting PP.

Spikes has 32 max PP. Correct relevant values in the code.
2015-07-17 01:47:58 -07:00
Guangcong Luo
3bde6c758b Merge pull request #2050 from ascriptmaster/tests
Fix Mold Breaker interaction with Damp
2015-07-16 16:36:43 -05:00
Konrad Borowski
c0b71f03b7 Show that weather began even under Air Lock effect 2015-07-16 16:12:47 +02:00
Kevin Lau
55f08be727 Add many Ability tests related to Mold Breaker 2015-07-15 14:48:57 -07:00
Kevin Lau
72b61b25d6 Update Intimidate test to ensure ability activation order
Re-do the activation test with the Pokemon switched to ensure that ability
activation was based on speed instead of player order.
2015-07-13 20:39:25 -07:00
Kevin Lau
604194e7d4 Normalize wording on tests related to Mold Breaker
The two most common wordings were "suppressed" and "bypassed". Out of the
two, "suppressed" was chosen to be used across all tests.
2015-07-12 03:27:11 -07:00
Kevin Lau
e991c70f4c Update Intimidate test to check activation order 2015-07-07 13:20:32 -07:00
Kevin Lau
3c33a363fa Add Intimidate test to check simultaneous switches 2015-07-07 00:15:10 -07:00
Kevin Lau
70c8ca45ff Fix behavior with Ability activation in double-KO scenarios
Add new function battle.insertQueue that inserts a decision into the
correct position in an already-sorted queue instead of re-sorting. Also,
to prevent code reuse, add new funciton battle.resolvePriority to deal
with shared code between battle.addQueue and battle.insertQueue.
2015-07-06 20:33:40 -07:00
Kevin Lau
f7f310831d Improve tests relating to item removal 2015-06-28 16:47:12 -07:00
Kevin Lau
51f2cd93ff Fix Color Change test wording 2015-06-27 00:42:21 -07:00
Kevin Lau
020c08d5d9 Add tests for Color Change, Relic Song, Thief 2015-06-27 00:40:16 -07:00
Ivo Julca
fc89d5f372 Test suite is now deterministic 2015-06-26 21:55:43 -05:00
Kevin Lau
d7b77a76a4 Mocha: Normalize oldgen descriptions for tests
Listing the generation number imitates the style used in PS! format names,
and is clearer on which generation it is than listing games from that gen
(so GSC -> Gen 2, etc)
2015-06-19 00:25:03 -07:00
Kevin Lau
9df3d0e42f Add Contrary tests for Mold Breaker and Belly Drum 2015-06-18 14:23:53 -07:00
Kevin Lau
ba35604c58 Add Sticky Hold and Knock Off tests 2015-06-17 15:39:32 -07:00
Kevin Lau
c5716272da Add Wonder Guard tests 2015-06-15 23:13:05 -07:00
Kevin Lau
4027fad468 Add working and pending tests for Pressure 2015-06-15 16:30:17 -07:00
Kevin Lau
b59c53f886 Add tests for Levitate, Magic Guard, Sturdy, Focus Sash 2015-06-09 03:09:01 -07:00
Kevin Lau
2d127ca355 Add Multiscale test 2015-05-31 05:05:07 -07:00
Kevin Lau
7607900160 Add Thick Fat tests 2015-05-31 03:54:41 -07:00
Kevin Lau
c374656275 Add Unaware Mocha tests 2015-05-31 03:54:14 -07:00
Guangcong Luo
bc789f8d7f Merge pull request #1906 from ascriptmaster/tests
Battle Engine no longer sets EVs to 84 with blank EV sets
2015-05-30 02:00:09 +00:00
Kevin Lau
88827ff468 Fix hardcoded HP values for Mocha tests
Without the battle engine setting the HP EVs to 84, all HP values for
tests that involved set damage/healing were changed.
2015-05-29 11:32:21 -07:00
Guangcong Luo
066b1d6828 Merge pull request #1865 from ascriptmaster/move-fixes
Battle refactor: No longer reset ignore in Battle#update
2015-05-27 01:11:34 +00:00
Guangcong Luo
b7aa629703 Merge pull request #1889 from ascriptmaster/move-fixes-2
Battle refactor: New function isGrounded(), bug fixes
2015-05-26 07:09:19 +00:00
Kevin Lau
61996d3f6e Battle refactor: New function isGrounded(), bug fixes
Added BattlePokemon#isGrounded to check for the grounded-ness of a
Pokemon. Also BattlePokemon#isSemiInvulnerable for whether a Pokemon is
in the first turn of a two-turn move that makes them semi-invulnerable.

Fixed Terrain bugs involving Pokemon in a semi-invulnerable state.

Changed OHKO move check to use BattlePokemon#isSemiInvulnerable, fixing a
graphical bug that would display an immunity message when a Pokemon
attempted an OHKO move on a higher-leveled Pokemon that was being held by
the effect of Sky Drop.

Fixed Misty Terrain bug that was causing Rest and the effect of Yawn to
put Pokemon to sleep.

Fixed Misty Terrain bug that was causing Yawn to fail.

Fixed Electric Terrain bug that was causing Yawn to succeed.
2015-05-21 16:54:44 -07:00
Kevin Lau
c919f1504e Add and fix up Sheer Force, Rock Head, and Substitute tests
"Sheer Force should eliminate Life Orb recoil in a move with secondary
effects" would always pass even with wrong implementation because the
Sheer Force Pokemon being used was not holding a Life Orb.

Added tests related to Mummy to Sheer Force and Rock Head.
2015-05-21 13:52:01 -07:00
Kevin Lau
9851ef9838 Add tests for Klutz, Magic Room, Embargo 2015-05-18 02:44:42 -07:00
Kevin Lau
1f10dc1185 Add terrain tests, Arena Trap tests, Inverse Battle tests 2015-05-17 19:43:15 -07:00
Juanma Serrano
0b7a0264e9 Add a Sheer Force test 2015-05-04 12:15:21 +02:00
Guangcong Luo
868ccb48c0 Merge pull request #1834 from ascriptmaster/tests
Fix up Desolate Land/Primordial Sea tests
2015-04-30 07:10:20 +00:00
Kevin Lau
6b1bedc706 Add some Cloud Nine tests 2015-04-29 00:25:51 -07:00
Kevin Lau
5f8ddde255 Fix Desolate Land/Primordial Sea to check for the correct event
Checking for damage could lead to off-by-one errors if the Pokemon are
different.
2015-04-28 02:47:56 -07:00
Kevin Lau
1a285aa04e Add regression tests for ORAS Weathers 2015-04-22 15:59:23 -07:00
Kevin Lau
777b30b18f Add tests for Simple 2015-03-13 15:18:14 -07:00
Kevin Lau
76484211b0 Update Unburden test
Using Leaf Storm gave the test a 10% chance to fail if it missed.
2015-02-26 12:27:31 -08:00
Kevin Lau
7cb80c7937 Add Item Removal tests
Added tests for Unburden, Pickup, and Mail.
2015-02-25 19:13:33 -08:00
Ivo Julca
03bbd985fc Test: add some tests for Magic Bounce 2015-02-19 19:52:23 -05:00
Ivo Julca
68aaa48974 Gulpfile: no files are exempt from style checks
- Streams are merged to make sure that all errors and warnings are reported.
- Adds dev dependencies: `merge-stream` and `lazypipe`.
- Tracks a fork of `gulp-jshint` to fix https://github.com/spalger/gulp-jshint/issues/88
2015-02-18 19:51:15 -05:00
Ivo Julca
5508777d97 Add first few battle simulation tests 2015-02-15 13:35:43 -05:00