Class UpperHandTests

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

public class UpperHandTests extends Object
Tests for Upper Hand
  • Constructor Details

    • UpperHandTests

      public UpperHandTests()
  • Method Details

    • testUpperHandFlinchesTargetsWithPriorityAttacks

      public static CompletableFuture<TestResult> testUpperHandFlinchesTargetsWithPriorityAttacks(BattleTestHelper helper)
      If the target has selected a physical or special move with increased priority from +1 to +3 and has not yet had a chance to execute its move, Upper Hand will strike first and cause the target to flinch.

      In this test, a Flamigo that knows the move Upper Hand faces a Scyther that knows the move Vacuum Wave (+1 priority).

           The Flamigo selects Upper Hand to use on the Scyther.
           The Scyther selects Vacuum Wave to use on the Flamigo.
           -
           We verify that the Flamigo has not taken any damage (due to the Scyther flinching).
       
    • testUpperHandDoesNotFlinchNonPriorityAttacks

      public static CompletableFuture<TestResult> testUpperHandDoesNotFlinchNonPriorityAttacks(BattleTestHelper helper)
      If the target has selected a physical or special move with increased priority from +1 to +3 and has not yet had a chance to execute its move, Upper Hand will strike first and cause the target to flinch.

      In this test, a Flamigo that knows the move Upper Hand faces a Scyther that knows the move False Swipe.

           The Flamigo selects Upper Hand to use on the Scyther.
           The Scyther selects False Swipe to use on the Flamigo.
           -
           We verify that the Flamigo has taken damage.
       
    • testUpperHandFlinchesSlowerFakeOuts

      public static CompletableFuture<TestResult> testUpperHandFlinchesSlowerFakeOuts(BattleTestHelper helper)
      If the target has selected a physical or special move with increased priority and has not yet had a chance to execute its move, such as Fake Out, Upper Hand will strike first and cause the target to flinch.

      In this test, a Flamigo that knows the move Upper Hand faces a Dewgong that knows the move Fake Out (+3 priority).

           The Flamigo selects Upper Hand to use on the Dewgong.
           The Dewgong selects Fake Out to use on the Flamigo.
           -
           We verify that the Flamigo has not taken any damage (due to the Dewgong flinching).