Class MotorDriveTests

java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.ability.MotorDriveTests

public class MotorDriveTests extends Object
Tests for the Motor Drive ability
  • Constructor Details

    • MotorDriveTests

      public MotorDriveTests()
  • Method Details

    • testMotorDrive

      public static CompletableFuture<TestResult> testMotorDrive(BattleTestHelper helper)
      When a Pokémon with Motor Drive is hit by an Electric-type move, its Speed is increased by one stage, and the move will have no effect on that Pokémon.

      In this test, a Blitzle with the Motor Drive ability that knows the move Sleep Talk faces an Elekid that knows the move Thunder Shock.

           Turn 1
           The Blitzle uses Sleep Talk.
           The Elekid uses Thunder Shock.
           -
           We verify that the Blitzle's Speed was increased by one stage.
           We verify that the Blitzle was not damaged.
           We verify that the Blitzle was not paralyzed.
       
    • testMotorDriveActivatesOnlyOnce

      public static CompletableFuture<TestResult> testMotorDriveActivatesOnlyOnce(BattleTestHelper helper)
      When a Pokémon with Motor Drive is hit by an Electric-type move, its Speed is increased by one stage, and the move will have no effect on that Pokémon.

      In this test, a Blitzle with the Motor Drive ability that knows the move Sleep Talk faces a Graveler with the Galvanize ability that knows the move Double Hit. Gravelers cannot actually learn Double Hit during normal gameplay.

           Turn 1
           The Blitzle uses Sleep Talk.
           The Graveler uses Double Hit.
           -
           We verify that the Blitzle's Speed was increased by only one stage.
           We verify that the Blitzle was not damaged.
           We verify that the Blitzle was not paralyzed.
       
    • testMotorDriveDoesNotActivateWhenProtected

      public static CompletableFuture<TestResult> testMotorDriveDoesNotActivateWhenProtected(BattleTestHelper helper)
      Motor Drive will not activate if the Pokémon is protected from the Electric-type move.

      In this test, a Blitzle with the Motor Drive ability that knows the move Protect faces an Elekid that knows the move Thunder Shock.

           Turn 1
           The Blitzle uses Protect.
           The Elekid uses Thunder Shock.
           -
           We verify that the Blitzle's Speed did not change.
           We verify that the Blitzle was not damaged.
           We verify that the Blitzle was not paralyzed.
       
    • testMotorDriveActivatesBeforeCellBattery

      public static CompletableFuture<TestResult> testMotorDriveActivatesBeforeCellBattery(BattleTestHelper helper)
      If a Pokémon with Motor Drive is holding a Cell Battery, Motor Drive absorbs the move so the Cell Battery's effect is not triggered.

      In this test, a Blitzle with the Motor Drive ability that holds a Cell Battery and knows the move Sleep Talk faces an Elekid that knows the move Thunder Shock.

           Turn 1
           The Blitzle uses Sleep Talk.
           The Elekid uses Thunder Shock.
           -
           We verify that the Blitzle's Speed was increased by one stage.
           We verify that the Blitzle was not damaged.
           We verify that the Blitzle was not paralyzed.
           We verify that the Blitzle's Attack has not changed.
           We verify that the Blitzle still has a held item.