Class AdaptabilityTests

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

public class AdaptabilityTests extends Object
Tests for Adaptability
  • Constructor Details

    • AdaptabilityTests

      public AdaptabilityTests()
  • Method Details

    • testAdaptabilityIncreasesSTAB

      public static CompletableFuture<TestResult> testAdaptabilityIncreasesSTAB(BattleTestHelper helper)
      Adaptability increases STAB of a Pokémon with this Ability from 1.5 to 2.

      In this test, two Blue-Striped form Basculin that each know the move Aqua Jet face two Floragatos that know Sleep Talk. One Basculin has the Rock Head ability and one has the Adaptability ability.

           Turn 1
           The Basculin with Rock Head uses Aqua Jet on the first Floragato.
           The Basculin with Adaptability uses Aqua Jet on the second Floragato.
           The first Floragato uses Sleep Talk.
           The second Floragato uses Sleep Talk.
           -
           We verify that the Basculin with Rock Head did less damage than the Basculin with Adaptability.
           We verify that the Basculin with Rock Head did 75% of the damage amount that the Basculin with Adaptability did.
       
    • testAdaptabilityWithTerastallization

      public static CompletableFuture<TestResult> testAdaptabilityWithTerastallization(BattleTestHelper helper)
      Adaptability increases the STAB multiplier of a Terastallized Pokémon from 2 to 2.25.

      In this test, two Blue-Striped form Basculin that each have a Water-type Tera Type and know the move Aqua Jet face two Floragatos that know Sleep Talk. One Basculin has the Rock Head ability and one has the Adaptability ability.

           Turn 1
           Both Basculin Terastallize into the Water-type.
           The Basculin with Rock Head uses Aqua Jet on the first Floragato.
           The Basculin with Adaptability uses Aqua Jet on the second Floragato.
           The first Floragato uses Sleep Talk.
           The second Floragato uses Sleep Talk.
           -
           We verify that the Basculin with Rock Head did less damage than the Basculin with Adaptability.
           We verify that the Basculin with Rock Head did 88.89% of the damage amount that the Basculin with Adaptability did.
       
    • testAdaptabilityWithDifferentTeraTypeThanMove

      public static CompletableFuture<TestResult> testAdaptabilityWithDifferentTeraTypeThanMove(BattleTestHelper helper)
      When a Pokémon with Adaptability is Terastallized, Adaptability only affects moves of the Tera Type.

      In this test, two Blue-Striped form Basculin that each have a Grass Tera Type and know the move Aqua Jet face two Floragatos that know Sleep Talk. One Basculin has the Rock Head ability and one has the Adaptability ability.

      If a Basculin does not Terastallize and uses a Water-type move, that STAB should be ×1.5. If a Basculin with Adaptability does Terastallize into a non-Water-type and uses a Water-type move, Adaptability should not activate on the Water-type move, and the STAB should stay at ×1.5.

           Turn 1
           The Basculin with Rock Head does not Terastallize.
           The Basculin with Adaptability Terastallizes into the Grass type.
           The Basculin with Rock Head uses Aqua Jet on the first Floragato.
           The Basculin with Adaptability uses Aqua Jet on the second Floragato.
           The first Floragato uses Sleep Talk.
           The second Floragato uses Sleep Talk.
           -
           After Turn 1
           We verify that the Basculin with Rock Head did the same amount of damage as the Basculin with Adaptability.
       
    • testAdaptabilityWithDifferentTeraTypeThanMoveNotTerastallized

      public static CompletableFuture<TestResult> testAdaptabilityWithDifferentTeraTypeThanMoveNotTerastallized(BattleTestHelper helper)
      When a Pokémon with Adaptability is Terastallized, Adaptability only affects moves of the Tera Type.

      In this test, two Blue-Striped form Basculin that each have a Grass Tera Type and know the move Aqua Jet face two Floragatos that know Sleep Talk. One Basculin has the Rock Head ability and one has the Adaptability ability.

      If a Basculin does not Terastallize and uses a Water-type move, that STAB should be ×1.5. If a Basculin with Adaptability and a non-Water-type Tera Type does not Terastallize and uses a Water-type move, Adaptability should still activate on the Water-type move, and the STAB should change to ×2.0.

           Turn 1
           The Basculin with Rock Head does not Terastallize.
           The Basculin with Adaptability Terastallizes does not Terastallize.
           The Basculin with Rock Head uses Aqua Jet on the first Floragato.
           The Basculin with Adaptability uses Aqua Jet on the second Floragato.
           The first Floragato uses Sleep Talk.
           The second Floragato uses Sleep Talk.
           -
           After Turn 1
           We verify that the Basculin with Rock Head did less damage than the Basculin with Adaptability, because the Basculin with Adaptability didn't Terastallize.
           We verify that the Basculin with Rock Head did 75% of the damage amount that the Basculin with Adaptability.
       
    • testAdaptabilityWithStellarType

      public static CompletableFuture<TestResult> testAdaptabilityWithStellarType(BattleTestHelper helper)
      Stellar-type moves are unaffected by Adaptability.

      In this test, two Blue-Striped form Basculin that each have a Stellar Tera Type and know the move Tera Blast face two Floragatos that know Sleep Talk. One Basculin has the Rock Head ability and one has the Adaptability ability.

           Turn 1
           Both Basculin Terastallize into the Stellar type.
           The Basculin with Rock Head uses Tera Blast on the first Floragato.
           The Basculin with Adaptability uses Tera Blast on the second Floragato.
           The first Floragato uses Sleep Talk.
           The second Floragato uses Sleep Talk.
           -
           After Turn 1
           We verify that both Basculin are Terastallized.
           We verify that both Basculin are the Stellar type.
           We verify that both Basculin's last attack (Tera Blast) was Stellar type.
           We verify that the Basculin with Rock Head did the same amount of damage as the Basculin with Adaptability.