Commit Graph

96 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
4da92ae00c Upgrade Follow Me test to check for self-targetting moves 2015-07-17 01:48:01 -07: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
e5beaba7bf Upgrade Sky Drop test to check for Follow Me 2015-07-16 04:24:07 -07: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
Guangcong Luo
9d79f72418 Merge pull request #1999 from ascriptmaster/move-fixes
Fix Quash interaction with self-switching moves
2015-07-02 07:34:06 +00: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
dafbefe973 Fix Sky Drop test pointing at wrong generation
It should be Doubles Custom Game, not [Gen 5] Doubles Custom Game.
2015-06-26 19:07:47 -07:00
Kevin Lau
5403862e43 Fix random failure in Sky Drop test
In Doubles, if a decision is not specified, it tends to choose the first
move but the intended target can be wrong.
2015-06-26 18:59:43 -07:00
Kevin Lau
523ffe454b Add Sky Drop tests and pending Sky Drop glitch tests (for Gen 5) 2015-06-23 11:49:53 -07:00
Kevin Lau
d2eda4a375 Add Quash tests 2015-06-23 00:52:41 -07: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
85ee0961c1 Further upgrade status move tests
Steel-types are immune to the poison status in Gen 3+, so wrap it into the
"fail when the opposing Pokemon is immune to the status it sets" and set
up the poison-inflicting status test to check Generation 2.

Spin off Thunder Wave to its own test, and also create a test for Glare to
check its Generation 3 behavior as well.
2015-06-18 17:05:49 -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
ba1f5df45c Release and improve pending Iron Ball/Thousand Arrows tests
Some tests had incorrect program flow that was resulting in incorrect
expected behaviors.

Improved the wording on some test descriptions.

Gave some of the Pokemon Shell Armor to negate test failures due to
critical hit messages appearing before the type effectiveness messages.
2015-06-16 00:11:08 -07:00
Kevin Lau
c5716272da Add Wonder Guard tests 2015-06-15 23:13:05 -07:00
Kevin Lau
34a0947eab Add Ingrain tests 2015-06-15 23:12:59 -07:00
Kevin Lau
4027fad468 Add working and pending tests for Pressure 2015-06-15 16:30:17 -07:00
Ivo Julca
21aebd070e Add pending tests for Iron Ball and Thousand Arrows 2015-06-15 04:48:15 -05:00
Kevin Lau
b8af0856f4 Add tests for type-immunity negating moves and items 2015-06-11 13:48:28 -07:00
Guangcong Luo
83a3540886 Merge pull request #1908 from ascriptmaster/tests
Add option for Mocha tests to use event handlers
2015-06-09 23:03:37 +00:00
Kevin Lau
6d76928ec3 Add Battle#on tests 2015-06-09 03:42:32 -07:00
Kevin Lau
26f88d2f89 Change weight tests to use the new event handlers 2015-06-09 03:42:27 -07:00
Kevin Lau
b59c53f886 Add tests for Levitate, Magic Guard, Sturdy, Focus Sash 2015-06-09 03:09:01 -07:00
Kevin Lau
d36ffabdd8 Add Belch Mocha tests 2015-06-03 20:04:17 -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
903295d642 Fix rare test failures from crits
Max damage critical hits would result in OHKOs.
2015-05-31 03:54:37 -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