Class BlackSludgeTests

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

public class BlackSludgeTests extends Object
  • Constructor Details

    • BlackSludgeTests

      public BlackSludgeTests()
  • Method Details

    • testRestoresTheHitPointsOfPoisonTypes

      public static CompletableFuture<TestResult> testRestoresTheHitPointsOfPoisonTypes(BattleTestHelper helper)
      If currently held by a Poison-type Pokémon, the holder restores 1/16 of its maximum HP (rounded down, but not less than 1) at the end of each turn.

      In this test, a Salandit that holds a Black Sludge and knows the move Sleep Talk faces a Magikarp that knows the move Splash. - Turn 1 The Salandit uses Sleep Talk. The Magikarp uses Splash. At the end of their turns the Salandit's Black Sludge heals it. - We verify that the Salandit's HP is above 50%. We verify that the Salandit's HP is equal to its max HP minus 50% of its max HP (rounded down) + 1/16 of its maximum HP.

    • testDamagesNonPoisonTypes

      public static CompletableFuture<TestResult> testDamagesNonPoisonTypes(BattleTestHelper helper)
      If currently held by a Pokémon that is not Poison-type, the holder takes damage equal to 1/8 of its maximum HP (rounded down, but not less than 1) at the end of each turn.

      In this test, a Sandygast that holds a Black Sludge and knows the move Sleep Talk faces a Magikarp that knows the move Splash. - Turn 1 The Sandygast uses Sleep Talk. The Magikarp uses Splash. At the end of their turns the Sandygast's Black Sludge damages it. - We verify that the Sandygast's HP is below 50% of its max HP. We verify that the Sandygast's HP is equal to its max HP minus 50% of its max HP (rounded down) minus 1/8 of its max HP.

    • testDoesNotDamagePokemonWithMagicGuard

      public static CompletableFuture<TestResult> testDoesNotDamagePokemonWithMagicGuard(BattleTestHelper helper)
      A Pokémon with the Magic Guard ability is immune to Black Sludge's damage.

      In this test, a Duosion that holds a Black Sludge and knows the move Sleep Talk faces a Magikarp that knows the move Splash. - Turn 1 The Duosion uses Sleep Talk. The Magikarp uses Splash. - We verify that the Duosion's HP is equal to its max HP minus 50% of its max HP (rounded down).

    • testDoesNotHealPokemonAffectedByHealBlock

      public static CompletableFuture<TestResult> testDoesNotHealPokemonAffectedByHealBlock(BattleTestHelper helper)
      From Generation V onwards, Black Sludge cannot heal Pokémon affected by Heal Block.

      In this test, a Dustox that holds a Black Sludge and knows the move Sleep Talk faces a Claydol that knows the move Heal Block. - Turn 1 The Dustox uses Sleep Talk. The Claydol uses Heal Block. At the end of their turns the Dustox's Black Sludge heals it. - We verify that the Dustox's HP is equal to its max HP minus 50% of its max HP (rounded down).

    • testHealsAtLeastOneHP

      public static CompletableFuture<TestResult> testHealsAtLeastOneHP(BattleTestHelper helper)
      If currently held by a Poison-type Pokémon, the holder restores 1/16 of its maximum HP (rounded down, but not less than 1) at the end of each turn.

      In this test, a Gastly that holds a Black Sludge and knows the move Sleep Talk faces a Magikarp that knows the move Splash. - Turn 1 The Gastly uses Sleep Talk. The Magikarp uses Splash. At the end of their turns the Gastly's Black Sludge heals it. - We verify that the Gastly is at full health from recovering HP.

    • testDealsAtLeastOneDamage

      public static CompletableFuture<TestResult> testDealsAtLeastOneDamage(BattleTestHelper helper)
      If currently held by a Pokémon that is not Poison-type, the holder takes damage equal to 1/8 of its maximum HP (rounded down, but not less than 1) at the end of each turn.

      In this test, a Shedinja that holds a Black Sludge and knows the move Sleep Talk faces a Magikarp that knows the move Splash. - Turn 1 The Shedinja uses Sleep Talk. The Magikarp uses Splash. At the end of their turns the Shedinja's Black Sludge damages it. - We verify that the Shedinja has fainted.