Class BerryStatResponseItemTests
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<TestResult>
A Kee Berry raises the holder's Defense by one stage when hit by a physical move.static CompletableFuture<TestResult>
A Maranga Berry raises the holder's Special Defense by one stage when hit by a special move.static CompletableFuture<TestResult>
A Pokémon holding a Kee Berry should have its Defense raised after one hit of a multi-hit move, thus allowing it to take reduced damage from any subsequent hits.static CompletableFuture<TestResult>
The Kee Berry and the Maranga Berry are affected by the Ripen ability.
-
Constructor Details
-
BerryStatResponseItemTests
public BerryStatResponseItemTests()
-
-
Method Details
-
testKeeBerryRaisesDefenseByOneStageWhenHitByPhysicalMove
public static CompletableFuture<TestResult> testKeeBerryRaisesDefenseByOneStageWhenHitByPhysicalMove(BattleTestHelper helper) A Kee Berry raises the holder's Defense by one stage when hit by a physical move.In this test a Magikarp that knows the move Tackle faces a Geodude holding a Kee Berry that knows the move Sleep Talk. - The Magikarp attacks with Tackle. Because Tackle is a physical attack, the Geodude's Kee Berry activates and raises its Defense. Geodude uses Sleep Talk. - We verify that Geodude no longer has a held item. We verify that Geodude had its Defense stage raised by one.
-
testMarangaBerryRaisesSpecialDefenseWhenHitBySpecialMove
public static CompletableFuture<TestResult> testMarangaBerryRaisesSpecialDefenseWhenHitBySpecialMove(BattleTestHelper helper) A Maranga Berry raises the holder's Special Defense by one stage when hit by a special move.In this test a Smeargle that knows the move Round faces a Geodude holding a Maranga Berry that knows the move Sleep Talk. - The Smeargle attacks with Round. Because Round is a special attack, the Geodude's Maranga Berry activates and raises its Special Defense. Geodude uses Sleep Talk. - We verify that Geodude no longer has a held item. We verify that Geodude had its Special Defense stage raised by one.
-
testShouldBeAffectedByRipen
The Kee Berry and the Maranga Berry are affected by the Ripen ability.In this test, a Flapple that knows Endure, with the ability Ripen, and holding an Maranga Berry faces off against a Lapras that knows Water Gun. - The Flapple uses Endure. The Lapras attacks the Flapple with Water Gun. The Flapple's Maranga Berry activates with Ripen and raises its Special Defense stage by 2. - We verify that the Flapple no longer has a held item, because the Maranga Berry should be consumed upon activating. We finally verify that the stage of the Flapple's Special Defense was raised to 2 from 0, because Ripen doubles the effects of these berries.
-
testRaisesDefenseAfterFirstHitOfMultiHitMove
public static CompletableFuture<TestResult> testRaisesDefenseAfterFirstHitOfMultiHitMove(BattleTestHelper helper) A Pokémon holding a Kee Berry should have its Defense raised after one hit of a multi-hit move, thus allowing it to take reduced damage from any subsequent hits.In this test, 3 Wynauts, each with the move Double Iron Bash face off against 3 Alakazams in a triple battle. The first Alakazam holds a Kee Berry and knows Sleep Talk. The second Alakazam has no held item and knows Sleep Talk. The third Alakazam holds a Choice Scarf and knows Defense Curl. All of the Alakazams should move before all the Wynauts, but the third Alakazam has a Choice Scarf to be doubly sure since the order of its attack matters. - The Alakazams attack and never damage the Wynauts. The one with Defense Curl has its Defense raised. Each Wynaut attacks one Alakazam with Double Iron Bash. - We measure the first Alakazam's Defense before and after it is attacked. We verify that the first Alakazam no longer has a held item (meaning it consumed its Kee Berry upon being hit by a physical move) and then we verify that the first Alakazam's Defense has been raised by one stage. - We then get the damage taken by each Alakazam and verify that the first Alakazam that had its Defense raised with the Kee Berry took less damage than the second Alakazam that never had its Defense modified because the first Alakazam's raised Defense would have reduced damage from the second hit of Double Iron Bash. Then we verify that the first Alakazam took more damage than the third Alakazam that raised its Defense with Defense Curl because the third Alakazam should have had taken less damage on both hits of Double Iron Bash, but the first Alakazam should only have taken less damage on the second hit.
-