Class JabocaBerryTests
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<TestResult>
A Jaboca Berry held by a Pokémon should only activate its effect upon the Pokémon being hit by a Physical attack.static CompletableFuture<TestResult>
A Jaboca Berry held by a Pokémon should only activate its effect upon the Pokémon being hit by a Physical attack, even if the attack did not make physical contact.static CompletableFuture<TestResult>
A Jaboca Berry should deal damage to the attacker, even if the holder of the Jaboca Berry fainted from the attack.static CompletableFuture<TestResult>
Magic Guard should prevent the activation of a Jaboca Berry.
-
Constructor Details
-
JabocaBerryTests
public JabocaBerryTests()
-
-
Method Details
-
testActivatesAfterAPhysicalMove
public static CompletableFuture<TestResult> testActivatesAfterAPhysicalMove(BattleTestHelper helper) A Jaboca Berry held by a Pokémon should only activate its effect upon the Pokémon being hit by a Physical attack.In this test, a Charizard with Ember and Scratch faces off against a Cramorant with Sleep Talk, holding a Jaboca Berry. The Cramorant never damages the Charizard with an attack. The Charizard attacks the Cramorant with Ember, which doesn't activate the Jaboca Berry. We verify that the Charizard still has full health. The Charizard then attacks the Cramorant with Scratch, which should activate the Jaboca Berry. We then verify that the Charizard has exactly 7/8 of its max HP left, because the Jaboca Berry should do 1/8 of the attacker's HP in damage.
-
testActivatesAfterAPhysicalNonContactMove
public static CompletableFuture<TestResult> testActivatesAfterAPhysicalNonContactMove(BattleTestHelper helper) A Jaboca Berry held by a Pokémon should only activate its effect upon the Pokémon being hit by a Physical attack, even if the attack did not make physical contact.In this test, a Decidueye with Peck faces off against a Cramorant with Sleep Talk, holding a Jaboca Berry. The Cramorant never damages the Decidueye with an attack. The Decidueye attacks the Cramorant with Peck, which should activate the Jaboca Berry. We then verify that the Decidueye took exactly 1/8 of its max HP in damage, because the Jaboca Berry should do 1/8 of the attacker's HP in damage.
-
testActivatesEvenIfHolderIsFainted
public static CompletableFuture<TestResult> testActivatesEvenIfHolderIsFainted(BattleTestHelper helper) A Jaboca Berry should deal damage to the attacker, even if the holder of the Jaboca Berry fainted from the attack.In this test, a Morpeko with Aura Wheel faces off against a Cramorant with Sleep Talk, holding a Jaboca Berry. The Cramorant attacks but never damages the Morpeko with its Sleep Talk attack. The Morpeko attacks the Cramorant with Aura Wheel, which should deal enough damage to the Cramorant to faint it. The Cramorant's trainer should then switch a second Cramorant in. We verify that the first Cramorant fainted. We then verify that the Morpeko has exactly 7/8 of its max HP left, because the Jaboca Berry should do 1/8 of the attacker's HP in damage, even when the holder faints.
-
testDoesNotActivateAfterPhysicalMoveFromPokemonWithMagicGuard
public static CompletableFuture<TestResult> testDoesNotActivateAfterPhysicalMoveFromPokemonWithMagicGuard(BattleTestHelper helper) Magic Guard should prevent the activation of a Jaboca Berry. Note: There is no mention of this interaction on Bulbapedia. This test is solely based on Smogon's tests.In this test, a Clefable with Pound, and the ability Magic Guard faces off against a Cramorant with Sleep Talk, holding a Jaboca Berry. The Cramorant attacks but never damages the Clefable with its Sleep Talk attack. The Clefable attacks the Cramorant with Pound. We verify that the Clefable is still has max HP, because the activation of the Jaboca Berry should be prevented by Magic Guard. We then also verify that the Cramorant still has the Jaboca Berry, to ensure that the Jaboca Berry was not consumed but just did not affect the Clefable.
-