Class MentalHerbTests

java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.item.MentalHerbTests

public class MentalHerbTests extends Object
Tests for the Mental Herb Tests
  • Constructor Details

    • MentalHerbTests

      public MentalHerbTests()
  • Method Details

    • testMentalHerbCuresUserOfInfatuation

      public static CompletableFuture<TestResult> testMentalHerbCuresUserOfInfatuation(BattleTestHelper helper)
      If the holder of a Mental Herb becomes infatuated, it consumes the Mental Herb and is cured of the effect.

      In this test, a male Teddiursa that holds a Mental Herb and knows the move Sleep Talk faces a female Luvdisc that knows the move Attract.

           Turn 1
           Luvdisc uses Attract. The Teddiursa becomes infatuated.
           The Teddiursa's Mental Herb activates and cures its status.
           Teddiursa uses Sleep Talk.
           -
           We verify that the Teddiursa does not have a held item.
           We verify that the Teddiursa's consumed item is a Mental Herb.
           We verify that the Teddiursa does not have the Infatuated status.
       
    • testMentalHerbCuresUserOfTaunt

      public static CompletableFuture<TestResult> testMentalHerbCuresUserOfTaunt(BattleTestHelper helper)
      If the holder of a Mental Herb becomes affected by Taunt, it consumes the Mental Herb and is cured of the effect.

      In this test, a Teddiursa that holds a Mental Herb and knows the move Sleep Talk faces a Shieldon that knows the move Taunt.

           Turn 1
           Shieldon uses Taunt. The Teddiursa becomes taunted.
           The Teddiursa's Mental Herb activates and cures its status.
           Teddiursa uses Sleep Talk.
           -
           We verify that the Teddiursa does not have a held item.
           We verify that the Teddiursa's consumed item is a Mental Herb.
           We verify that the Teddiursa does not have the Taunt status.
       
    • testMentalHerbCuresUserOfEncore

      public static CompletableFuture<TestResult> testMentalHerbCuresUserOfEncore(BattleTestHelper helper)
      If the holder of a Mental Herb becomes affected by Encore, it consumes the Mental Herb and is cured of the effect.

      In this test, a Teddiursa that holds a Mental Herb and knows the move Sleep Talk faces a Slakoth that knows the move Encore.

           Turn 1
           Slakoth uses Encore. The Teddiursa receives an encore.
           The Teddiursa's Mental Herb activates and cures its status.
           Teddiursa uses Sleep Talk.
           -
           We verify that the Teddiursa does not have a held item.
           We verify that the Teddiursa's consumed item is a Mental Herb.
           We verify that the Teddiursa does not have the Encore status.
       
    • testMentalHerbCuresUserOfTorment

      public static CompletableFuture<TestResult> testMentalHerbCuresUserOfTorment(BattleTestHelper helper)
      If the holder of a Mental Herb becomes affected by Torment, it consumes the Mental Herb and is cured of the effect.

      In this test, a Teddiursa that holds a Mental Herb and knows the move Sleep Talk faces a Krokorok that knows the move Torment.

           Turn 1
           Krokorok uses Torment. The Teddiursa becomes tormented.
           The Teddiursa's Mental Herb activates and cures its status.
           Teddiursa uses Sleep Talk.
           -
           We verify that the Teddiursa does not have a held item.
           We verify that the Teddiursa's consumed item is a Mental Herb.
           We verify that the Teddiursa does not have the Torment status.
       
    • testMentalHerbCuresUserOfHealBlock

      public static CompletableFuture<TestResult> testMentalHerbCuresUserOfHealBlock(BattleTestHelper helper)
      If the holder of a Mental Herb becomes affected by Heal Block, it consumes the Mental Herb and is cured of the effect.

      In this test, a Teddiursa that holds a Mental Herb and knows the move Sleep Talk faces a Solosis that knows the move Heal Block.

           Turn 1
           Solosis uses Heal Block. The Teddiursa is prevented from healing.
           The Teddiursa's Mental Herb activates and cures its status.
           Teddiursa uses Sleep Talk.
           -
           We verify that the Teddiursa does not have a held item.
           We verify that the Teddiursa's consumed item is a Mental Herb.
           We verify that the Teddiursa does not have the Heal Block status.
       
    • testMentalHerbCuresUserOfDisable

      public static CompletableFuture<TestResult> testMentalHerbCuresUserOfDisable(BattleTestHelper helper)
      If the holder of a Mental Herb becomes affected by Disable, it consumes the Mental Herb and is cured of the effect.

      In this test, a Teddiursa that holds a Mental Herb and knows the move Sleep Talk faces a Cursola that knows the move Disable.

           Turn 1
           Cursola uses Disable. The Teddiursa's Sleep Talk is disabled.
           The Teddiursa's Mental Herb activates and cures its status.
           Teddiursa uses Sleep Talk.
           -
           We verify that the Teddiursa does not have a held item.
           We verify that the Teddiursa's consumed item is a Mental Herb.
           We verify that the Teddiursa does not have the Disable status.
       
    • testMentalHerbConsumedBeforeObliviousForInfatuation

      public static CompletableFuture<TestResult> testMentalHerbConsumedBeforeObliviousForInfatuation(BattleTestHelper helper)
      If a Pokémon with Oblivious that is holding a Mental Herb becomes infatuated or affected by Taunt, the Mental Herb will be consumed before Oblivious cures the Pokémon of infatuation or the Taunt.

      In this test, a male Numel that holds a Mental Herb and knows the move Sleep Talk faces a female Gyarados that holds a Gyaradosite and knows the move Attract.

           Turn 1
           The Gyarados Mega Evolves. Its ability changes into Mold Breaker.
           The Gyarados uses Attract.
           The Gyarados' Mold Breaker bypasses Numel's Oblivious and the Numel becomes infatuated.
           The Numel's Mental Herb activates and cures its status.
           Numel uses Sleep Talk.
           -
           We verify that the Gyarados' ability is Mold Breaker.
           We verify that the Numel does not have a held item.
           We verify that the Numel's consumed item is a Mental Herb.
           We verify that the Numel does not have the Attract status.
       
    • testMentalHerbConsumedBeforeObliviousForTaunt

      public static CompletableFuture<TestResult> testMentalHerbConsumedBeforeObliviousForTaunt(BattleTestHelper helper)
      If a Pokémon with Oblivious that is holding a Mental Herb becomes infatuated or affected by Taunt, the Mental Herb will be consumed before Oblivious cures the Pokémon of infatuation or the Taunt.

      In this test, a Numel that holds a Mental Herb and knows the move Sleep Talk faces a Gyarados that holds a Gyaradosite and knows the move Taunt.

           Turn 1
           The Gyarados Mega Evolves. Its ability changes into Mold Breaker.
           The Gyarados uses Taunt.
           The Gyarados' Mold Breaker bypasses Numel's Oblivious and the Numel becomes taunted.
           The Numel's Mental Herb activates and cures its status.
           Numel uses Sleep Talk.
           -
           We verify that the Gyarados' ability is Mold Breaker.
           We verify that the Numel does not have a held item.
           We verify that the Numel's consumed item is a Mental Herb.
           We verify that the Numel does not have the Taunt status.
       
    • testMentalHerbActivatesBeforeMultipleAbilitiesTrigger

      public static CompletableFuture<TestResult> testMentalHerbActivatesBeforeMultipleAbilitiesTrigger(BattleTestHelper helper)
      If a Pokémon holding a Mental Herb triggers Cursed Body or Cute Charm of multiple Pokémon with a single attack, the Mental Herb will be consumed immediately after the first Ability activates, so by the time the second Ability activates the holder no longer has a Mental Herb.

      In this Double Batle test, an Axew that holds a Mental Herb and knows the move Breaking Swipe faces two Cursolas that both have the Cursed Body ability and know the move Sleep Talk.

           Turn 1
           Axew uses Breaking Swipe. One Cursola takes damage and its Cursed Body activates.
           The Axew's Breaking Swipe becomes disabled. The Axew's Mental Herb activates and cures its status.
           The second Cursola takes damage and its Cursed Body activates.
           The Axew's Breaking Swipe becomes disabled.
           Cursola uses Sleep Talk.
           -
           We verify that the Axew does not have a held item.
           We verify that the Axew's consumed item is a Mental Herb.
           We verify that the Axew has the Disable status.