Class TakeHeartTests

java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.move.TakeHeartTests

public class TakeHeartTests extends Object
  • Constructor Details

    • TakeHeartTests

      public TakeHeartTests()
  • Method Details

    • testCuresStatusConditionsAndRaisesStats

      public static CompletableFuture<TestResult> testCuresStatusConditionsAndRaisesStats(BattleTestHelper helper)
      Take Heart should cure a Pokémon of its non-volatile status conditions and raise the user's Special Attack and Special Defense by one stage each.

      In this test a Gengar with Toxic faces off against a Phione with Take Heart. - Gengar attacks with Toxic first. Phione then uses Take Heart. - We verify that Phione was cured of its Poison. We verify that Phione had its Special Attack and Special Defense raised by one stage each.

    • testShouldNotCureAlliesAndShouldNotCureTeammatesNotOnTheBattlefield

      public static CompletableFuture<TestResult> testShouldNotCureAlliesAndShouldNotCureTeammatesNotOnTheBattlefield(BattleTestHelper helper)
      Take Heart should not cure any of a Pokémon's allies or any of its teammates that are not on the battlefield of their status conditions.

      In this test a Koffing with the moves Poison Gas and Nasty Plot is on a team with an Ekans that knows Toxic Spikes and Rest. They're facing a team with an Unown that knows Sleep Talk, a Magikarp that knows Baton Pass, and a Phione that knows the move Take Heart. - Turn 1 Koffing, Ekans, Unown, and Magikarp start on the field. Ekans lays Toxic Spikes on Magikarp and Unown's field. Koffing uses Poison Gas, poisoning Magikarp and Unown. Magikarp uses Baton Pass, switching in Phione, who is poisoned by the Toxic Spikes. Unown uses Sleep Talk. Unown and Phione are damaged by poison. Turn 2 Phione uses Take Heart. Phione is cured of its poison. Koffing uses Nasty Plot. Pichu uses Nasty Plot. Unown uses Sleep Talk. Unown is damaged by poison. - We verify that the Phione was cured of its Poison status. We verify that the Unown still has its Poison status. We verify that the Magikarp still has its Poison status.

    • testShouldNotCureVolatileStatuses

      public static CompletableFuture<TestResult> testShouldNotCureVolatileStatuses(BattleTestHelper helper)
      Take Heart should not cure a Pokémon of its volatile status conditions.

      In this test a Gengar with Torment faces off against a Phione with Take Heart. - Turn 1 Gengar attacks with Torment first. Phione becomes tormented. Phione then uses Take Heart. Phione is still tormented. - We verify that the Phione still has the Torment status condition.