Class LeftoversTests
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<TestResult>
A Leftovers that is held by a Pokémon should heal the Pokémon at the end of a turn, even if they switched in that turn.static CompletableFuture<TestResult>
A Leftovers that is held by a Pokémon should not heal the Pokémon if the Pokémon is affected by Heal Block.
-
Constructor Details
-
LeftoversTests
public LeftoversTests()
-
-
Method Details
-
testShouldHealAfterSwitch
A Leftovers that is held by a Pokémon should heal the Pokémon at the end of a turn, even if they switched in that turn.In this test, a Blissey that knows Heal Bell and that holds a Leftovers faces off against a Miltank that knows Seismic Toss and Splash. The battle participant also has a Geodude that knows Splash and has the ability Sturdy. - Turn 1 The Blissey attacks with Heal Bell but does no damage to Miltank and Blissey doesn't have a status condition, so the Heal Bell doesn't do anything. The Miltank attacks with Seismic Toss, which should do exactly 100 damage, as the Miltank should be level 100. Blissey's leftovers activates and heals Blissey. Turn 2 The Blissey is switched out for Magikarp. Miltank attacks with Seismic Toss again. Turn 3 The Magikarp is switched out for Blissey again. Miltank attacks with Splash. Blissey's leftovers activates and heals Blissey. - We verify that the Blissey's HP is exactly 590, after the first Seismic Toss attack and Leftovers activation. We verify that the Blissey's HP is exactly 630 at the end of the battle to show the Leftovers activated after being switched in.
-
testShouldNotHealIfAffectedByHealBlock
public static CompletableFuture<TestResult> testShouldNotHealIfAffectedByHealBlock(BattleTestHelper helper) A Leftovers that is held by a Pokémon should not heal the Pokémon if the Pokémon is affected by Heal Block.In this test, a Blissey that knows Splash and that holds a Leftovers faces off against a Miltank that knows Heal Block and Seismic Toss. - Turn 1 The Blissey attacks with Splash but does no damage to Miltank. The Miltank attacks with Heal Block, preventing Leftovers from healing for 5 turns. Turn 2 The Blissey attacks with Splash but does no damage to Miltank. The Miltank attacks with Seismic Toss, which should do exactly 100 damage, as the Miltank should be level 100. Blissey's leftovers does not activate to heal Blissey. - We verify that the Blissey's HP is exactly its max health max health minus the 100 damage.
-