Class ToxicOrbTests

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

public class ToxicOrbTests extends Object
Tests for the Toxic Orb.
  • Constructor Details

    • ToxicOrbTests

      public ToxicOrbTests()
  • Method Details

    • testToxicOrbBadlyPoisonsTheHolderAndStartsDamageTheNextTurn

      public static CompletableFuture<TestResult> testToxicOrbBadlyPoisonsTheHolderAndStartsDamageTheNextTurn(BattleTestHelper helper)
      At the end of the turn, the Toxic Orb badly poisons its holder. The Toxic Orb activates after the Pokémon would take damage from poison, so it does not take poison damage the turn it is poisoned by the Toxic Orb.

      In this test, a Spinda that holds a Toxic Orb and knows the move Sleep Talk faces a Salandit that knows the move Sleep Talk.

           Turn 1
           The Spinda uses Sleep Talk.
           The Salandit uses Sleep Talk.
           At the end of the turn the Spinda's Toxic Orb badly poisons it.
           Turn 2
           The Spinda uses Sleep Talk.
           The Salandit uses Sleep Talk.
           At the end of the turn the Spinda takes poison damage.
           -
           After turn 1:
           We verify that the Spinda is badly poisoned.
           We verify that the Spinda is at full health.
           After turn 2:
           We verify that the Spinda is badly poisoned.
           We verify that the Spinda is not at full health.
       
    • testToxicOrbActivatesAfterHydration

      public static CompletableFuture<TestResult> testToxicOrbActivatesAfterHydration(BattleTestHelper helper)
      The Toxic Orb activates after a Pokémon is cured of its status condition by affection, Hydration, or Shed Skin.

      In this test, a Phione that holds a Toxic Orb, knows the moves Sleep Talk and Rain Dance, and is paralyzed when the battle starts faces a Shroodle that knows the moves Sleep Talk and Sunny Day.

           Turn 1
           The Phione starts the battle paralyzed.
           The Phione uses Sleep Talk.
           The Shroodle uses Sleep Talk.
           Turn 2
           The Phione uses Sleep Talk.
           The Shroodle uses Rain Dance.
           At the end of the turn the Phione is cured of its paralysis by its ability Hydration.
           Then the Phione's Toxic Orb badly poisons it.
           Turn 3
           The Phione uses Sleep Talk.
           The Shroodle uses Sleep Talk.
           At the end of the turn the Phione's poison is cured by its ability Hydration.
           However, after that its Toxic Orb badly poisons it again.
           Turn 4
           The Phione uses Sleep Talk.
           The Shroodle uses Sunny Day.
           At the end of the turn the Phione takes poison damage.
           -
           After turn 1:
           We verify that the Phione is paralyzed.
           After turn 2:
           We verify that the battlefield has the rainy weather condition.
           We verify that the Phione is badly poisoned.
           We verify that the Phione is at full health.
           After turn 3:
           We verify that the Phione is badly poisoned.
           We verify that the Phione is at full health.
           After turn 4:
           We verify that the Phione is badly poisoned.
           We verify that the Phione is not at full health.
       
    • testToxicOrbActivatesAfterShedSkin

      public static CompletableFuture<TestResult> testToxicOrbActivatesAfterShedSkin(BattleTestHelper helper)
      The Toxic Orb activates after a Pokémon is cured of its status condition by affection, Hydration, or Shed Skin.

      In this test, a Pupitar that holds a Toxic Orb, knows the move Sleep Talk, and is paralyzed when the battle starts faces a Salandit that knows the move Sleep Talk.

           Turn 1
           The Pupitar uses Sleep Talk.
           The Salandit uses Sleep Talk.
           The Pupitar's Shed Skin cures it of its paralysis.
           The Pupitar's Toxic Orb badly poisons it.
           -
           After turn 1:
           We verify that the Pupitar is badly poisoned.
           We verify that the Pupitar is at full health.
       
    • testToxicOrbCanPoisonHoldersWithTheCorrosionAbility

      public static CompletableFuture<TestResult> testToxicOrbCanPoisonHoldersWithTheCorrosionAbility(BattleTestHelper helper)
      The Toxic Orb can poison a Poison-type holder if its Ability is Corrosion.

      In this test, a Spinda that holds a Toxic Orb and knows the move Sleep Talk faces a Salandit that knows the move Sleep Talk.

           Turn 1
           The Spinda uses Sleep Talk.
           The Salandit uses Sleep Talk.
           At the end of the turn the Salandit's Toxic Orb badly poisons it.
           Turn 2
           The Spinda uses Sleep Talk.
           The Salandit uses Sleep Talk.
           At the end of the turn the Salandit takes poison damage.
           -
           After turn 1:
           We verify that the Salandit is badly poisoned.
           We verify that the Salandit is at full health.
           After turn 2:
           We verify that the Salandit is badly poisoned.
           We verify that the Salandit is not at full health.