Class LeppaBerryTests
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<TestResult>
If a Pokémon is forced to eat a Leppa Berry, PP will be restored to the first move that has any PP missing.static CompletableFuture<TestResult>
A slightly redundant test to make sure that Bug Bite and Pluck forces Leppa Berries to be used the same way that Fling does.static CompletableFuture<TestResult>
testShouldRestorePPToFirstMoveWithMissingPPWhenForciblyEatenDueToStuffCheeks
(BattleTestHelper helper) A slightly redundant test to make sure that Stuff Cheeks forces Leppa Berries to be used the same way that Fling does.static CompletableFuture<TestResult>
A slightly redundant test to make sure that Teatime forces Leppa Berries to be used the same way that Fling does.static CompletableFuture<TestResult>
If a Pokémon is forced to eat a Leppa Berry, PP will be restored to the first move that has 0 PP left before it tries to restore PP to the first move with any amount of PP missing.static CompletableFuture<TestResult>
A Leppa Berry, if held by a Pokémon, restores 10 PP to a move that drops to 0 PP.
-
Constructor Details
-
LeppaBerryTests
public LeppaBerryTests()
-
-
Method Details
-
testShouldRestorePPToMovesWithNoPP
public static CompletableFuture<TestResult> testShouldRestorePPToMovesWithNoPP(BattleTestHelper helper) A Leppa Berry, if held by a Pokémon, restores 10 PP to a move that drops to 0 PP.In this test, a Turtonator holding a Leppa Berry that knows Flamethrower (Base 15 Max PP) faces off against a Shedinja that knows Grudge (move that faints the user loses all its PP). - Turn 1 The Shedinja uses Grudge. The Turtonator attacks with Flamethrower. The Flamethrower loses all its PP. The Turtonator consumes the Leppa Berry to bring the PP of Flamethrower to 10. Magikarp is switched in for Shedinja (to make sure nothing weird happens). - We verify that the Turtonator's Flamethrower has exactly 10 PP.
-
testShouldRestorePPToFirstMoveWithMissingPPWhenForciblyEaten
public static CompletableFuture<TestResult> testShouldRestorePPToFirstMoveWithMissingPPWhenForciblyEaten(BattleTestHelper helper) If a Pokémon is forced to eat a Leppa Berry, PP will be restored to the first move that has any PP missing.In this test, a Ninetales that knows Flamethrower, Incinerate, and Ember faces off against a Pelipper holding a Leppa Berry that knows Fling and Protect. Ninetales is faster than Pelipper and Pelipper resists fire-type attacks. - Turn 1 The Pelipper uses Protect. The Ninetales uses Incinerate. Incinerate has 14/15 PP now. Turn 2 The Ninetales uses Ember. Ember has 24/25 PP now. Pelipper uses Fling to throw the Leppa Berry at Ninetales. Ninetales' Incinerate recovers PP and is now at 15/15 PP. - We verify that the Ninetales's Flamethrower has all of its PP. We verify that the Ninetales's Incinerate has all of its PP. We verify that the Ninetales's Ember has all but one of its PP.
-
testShouldRestorePPToFirstMoveWithMissingPPWhenForciblyEatenDueToBugBite
public static CompletableFuture<TestResult> testShouldRestorePPToFirstMoveWithMissingPPWhenForciblyEatenDueToBugBite(BattleTestHelper helper) A slightly redundant test to make sure that Bug Bite and Pluck forces Leppa Berries to be used the same way that Fling does. If a Pokémon is forced to eat a Leppa Berry, PP will be restored to the first move that has any PP missing.In this test, an Araquanid holding a Leppa Berry that knows Aqua Ring, Wide Guard, and Bug Bite faces off against a Magikarp that knows Splash. - Turn 1 The Araquanid uses Aqua Ring. The Magikarp uses Splash. Aqua Ring has 19/20 PP now. Turn 2 The Araquanid uses Wide Guard. The Magikarp uses Splash. Wide Guard has 9/10 PP now. Turn 3 The Araquanid uses Bug Bite. The Magikarp uses Splash. Bug Bite has 19/20 PP now. Aqua Ring recovers PP from the eaten Leppa Berry and has 20/20 PP now. - We verify that the Araquanid's Aqua Ring has all of its PP. We verify that the Araquanid's Wide Guard has all but one of its PP. We verify that the Araquanid's Bug Bite has all but one of its PP.
-
testShouldRestorePPToFirstMoveWithMissingPPWhenForciblyEatenDueToStuffCheeks
public static CompletableFuture<TestResult> testShouldRestorePPToFirstMoveWithMissingPPWhenForciblyEatenDueToStuffCheeks(BattleTestHelper helper) A slightly redundant test to make sure that Stuff Cheeks forces Leppa Berries to be used the same way that Fling does. If a Pokémon is forced to eat a Leppa Berry, PP will be restored to the first move that has any PP missing.In this test, a Greedent holding a Leppa Berry that knows Stockpile, Swallow, and Stuff Cheeks faces off against a Magikarp that knows Splash. - Turn 1 The Greedent uses Stockpile. The Magikarp uses Splash. Stockpile has 19/20 PP now. Turn 2 The Greedent uses Swallow. The Magikarp uses Splash. Swallow has 9/10 PP now. Turn 3 The Greedent uses Stuff Cheeks. The Magikarp uses Splash. Stuff Cheeks has 9/10 PP now. Stockpile recovers PP from the eaten Leppa Berry and has 20/20 PP now. - We verify that the Greedent's Stockpile has all of its PP. We verify that the Greedent's Swallow has all but one of its PP. We verify that the Greedent's Stuff Cheeks has all but one of its PP.
-
testShouldRestorePPToFirstMoveWithMissingPPWhenForciblyEatenDueToTeatime
public static CompletableFuture<TestResult> testShouldRestorePPToFirstMoveWithMissingPPWhenForciblyEatenDueToTeatime(BattleTestHelper helper) A slightly redundant test to make sure that Teatime forces Leppa Berries to be used the same way that Fling does. If a Pokémon is forced to eat a Leppa Berry, PP will be restored to the first move that has any PP missing.In this test, a Ninetales that knows Flamethrower, Incinerate, and Ember faces off against a Polteageist holding a Leppa Berry that knows Teatime and Protect. Ninetales is faster than Polteageist. - Turn 1 The Polteageist uses Protect. The Ninetales uses Incinerate. Incinerate has 14/15 PP now. Turn 2 The Ninetales uses Ember. Ember has 24/25 PP now. Polteageist uses Teatime to make the Ninetales use its Leppa Berry. Ninetales' Incinerate recovers PP and is now at 15/15 PP. - We verify that the Ninetales's Flamethrower has all of its PP. We verify that the Ninetales's Incinerate has all of its PP. We verify that the Ninetales's Ember has all but one of its PP.
-
testShouldRestorePPToFirstMoveWithZeroPPWhenForciblyEaten
public static CompletableFuture<TestResult> testShouldRestorePPToFirstMoveWithZeroPPWhenForciblyEaten(BattleTestHelper helper) If a Pokémon is forced to eat a Leppa Berry, PP will be restored to the first move that has 0 PP left before it tries to restore PP to the first move with any amount of PP missing.In this test, a Turtonator that knows Flamethrower, Incinerate, Ember, and Overheat faces off against a Shedinja that knows Protect and Grudge, along with a Ting-Lu holding a Leppa Berry that knows Spite, Fling, and Protect. - Turn 1 The Shedinja uses Protect. The Turtonator uses Flamethrower. Turtonator's Flamethrower has 14/15 PP now. Turn 2 The Shedinja uses Grudge. The Turtonator uses Incinerate. Shedinja faints. Turtonator's Incinerate has 0/15 PP now. Shedinja is switched out for Ting-Lu Turn 3 Ting-Lu uses Protect. Turtonator uses Overheat. Turtonator's Overheat has 4/5 PP now. Turn 4 Ting-Lu uses Spite. Turtonator's Overheat has 0/5 PP now. Turtonator uses Ember. Turtonator's Ember has 24/25 PP now. Turn 5 Ting-Lu uses Fling to throw the Leppa Berry at Turtonator. Turtonator's Incinerate is at 10/15 PP now. Turtonator uses Ember. Ember has 23/25 PP now. - We verify that the Turtonator's Flamethrower has all but one of its PP. We verify that the Turtonator's Incinerate has 10 of its 15 PP. We verify that the Turtonator's Ember has all but two of its PP. We verify that the Turtonator's Overheat has none of its PP.
-