Class TerastallizationTests

java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.mechanics.TerastallizationTests

public class TerastallizationTests extends Object
Test to verify what Terastallization does in battle.
  • Constructor Details

    • TerastallizationTests

      public TerastallizationTests()
  • Method Details

    • testTerastallizationIncreasesBasePowerToSixty

      public static CompletableFuture<TestResult> testTerastallizationIncreasesBasePowerToSixty(BattleTestHelper helper)
      When a Pokémon is Terastallized, moves with a base power less than 60 that are the same type as its Tera Type have their base power increased to 60.

      In this Double Battle test, two Whirlipedes that have a Poison Tera Type and know the move Poison Sting face two Servines that know the move Sleep Talk.

           Turn 1
           The first Whirlipede Terastallizes into the Poison type and uses Poison Sting on the first Servine.
           The second Whirlipede does not Terastallize. It uses Poison Sting on the second Servine.
           The first Servine uses Sleep Talk.
           The second Servine uses Sleep Talk.
           -
           After Turn 1
           We verify that the Whirlipede that Terastallized did more damage than the Whirlipede that did not.
           We verify that the base power of the Terastallized-Poison Sting had a base power of 60.
       
    • testTerastallizationIncreasesBasePowerAfterTechnician

      public static CompletableFuture<TestResult> testTerastallizationIncreasesBasePowerAfterTechnician(BattleTestHelper helper)
      When a Pokémon is Terastallized, moves with a base power less than 60 that are the same type as its Tera Type have their base power increased to 60. This check happens after Technician, so if Technician brings the base power of a move to or above 60, this effect will not activate.

      In this Double Battle test, a Hitmontop with the Technician ability, a Normal Tera Type, and the move Pound is on a team with a Cinccino with the Technician ability, a Normal Tera Type, and the move Pound. Together they face two Servines that know the move Sleep Talk.

      Technician increases the power of moves which have a power of 60 or less by 50%. Hitmontop and Cinccino have the same base attack of 95.

           Turn 1
           The Cinccino does not Terastallize. It uses Pound on the second Servine. (STAB ×1.5)
           The first Servine uses Sleep Talk.
           The second Servine uses Sleep Talk.
           The Hitmontop Terastallizes into the Normal type and uses Pound on the first Servine. (STAB ×1.5)
           -
           After Turn 1
           We verify that the base power of the Cinccino's Technician-Pound had a base power of 60.
           We verify that the base power of the Hitmontop's Terastallized-Pound had a base power of 60.
           We verify that the Hitmontop did the same amount of damage as the Cinccino.
       
    • testTerastallizationDoesNotIncreaseMultiStrikeMovesPower

      public static CompletableFuture<TestResult> testTerastallizationDoesNotIncreaseMultiStrikeMovesPower(BattleTestHelper helper)
      When a Pokémon is Terastallized, moves with a base power less than 60 that are the same type as its Tera Type have their base power increased to 60, however, the boost does not apply to multistrike moves.

      In this Double Battle test, a Ferroseed (50 Base Attack) and a Skorupi (50 Base Attack) have the Bug Tera Type and know the move Pin Missile (25 Base Power). Together they face two Servines that know the move Sleep Talk.

           Turn 1
           The first Servine uses Sleep Talk.
           The second Servine uses Sleep Talk.
           The Ferroseed Terastallizes into the Bug type and uses Pin Missile on the first Servine (×1.5 STAB).
           The Skorupi does not Terastallize. It uses Pin Missile on the second Servine (×1.5 STAB).
           -
           After Turn 1
           We verify that the Ferroseed Terastallized.
           We verify that the Skorupi did not Terastallize.
           We verify that the Ferroseed did the same amount of damage as the Skorupi.
       
    • testTerastallizationDoesNotIncreasePriorityMovesPower

      public static CompletableFuture<TestResult> testTerastallizationDoesNotIncreasePriorityMovesPower(BattleTestHelper helper)
      When a Pokémon is Terastallized, moves with a base power less than 60 that are the same type as its Tera Type have their base power increased to 60, however, the boost does not apply to moves with increased priority.

      In this Double Battle test, a Pikachu (55 Base Attack) and a Starly (55 Base Attack) that have a Normal Tera Type and know the move Quick Attack (40 Base Power) face two Tepigs that know the move Sleep Talk.

           Turn 1
           The Pikachu Terastallizes into the Normal type and uses Quick Attack on the first Tepig (×1.5 STAB).
           The Starly does not Terastallize. It uses Quick Attack on the second Tepig (×1.5 STAB).
           The first Tepig uses Sleep Talk.
           The second Tepig uses Sleep Talk.
           -
           After Turn 1
           We verify that the Pikachu Terastallized.
           We verify that the Starly did not Terastallize.
           We verify that the Pikachu did the same amount of damage as the Starly.
       
    • testTerastallizationWithRollout

      public static CompletableFuture<TestResult> testTerastallizationWithRollout(BattleTestHelper helper)
      When a Pokémon is Terastallized, moves that increase in power (such as Rollout) are boosted if the move's base power would be below 60 when used.

      In this Double Battle test, a Sudowoodo (100 Base Attack) and a Scolipede (100 Base Attack) both have the Rock Tera Type and know Rollout. Together they face two Onix that know the move Sleep Talk.

           Turn 1
           The Sudowoodo does not Terastallize.
           The Scolipede Terastallizes into the Rock type.
           The base power of Rollout is 30.
           The Scolipede uses Rollout on the second Onix (×1.5 STAB).
           The first Onix uses Sleep Talk.
           The second Onix uses Sleep Talk.
           The Sudowoodo uses Rollout on the first Onix (×1.5 STAB).
           Turn 2
           The base power of Rollout is doubled to 60.
           The Scolipede uses Rollout on the second Onix (×1.5 STAB).
           The first Onix uses Sleep Talk.
           The second Onix uses Sleep Talk.
           The Sudowoodo uses Rollout on the first Onix (×1.5 STAB).
           Turn 3
           The base power of Rollout is doubled to 120.
           The Scolipede uses Rollout on the second Onix (×1.5 STAB).
           The first Onix uses Sleep Talk.
           The second Onix uses Sleep Talk.
           The Sudowoodo uses Rollout on the first Onix (×1.5 STAB).
           -
           After Turn 1
           We verify that the Sudowoodo did not Terastallize.
           We verify that the Scolipede Terastallized.
           We verify that the Scolipede did more damage than the Sudowoodo.
           We verify that the base power of the Terastallized-Rollout had a base power of 60.
           After Turn 2
           We verify that the Scolipede did the same amount of damage as the Sudowoodo.
           We verify that the base power of the Terastallized-Rollout had a base power of 60.
           After Turn 3
           We verify that the Scolipede did the same amount of damage as the Sudowoodo.
           We verify that the base power of the Terastallized-Rollout had a base power of 120.
       
    • testTerastallizationWithWaterSpout

      public static CompletableFuture<TestResult> testTerastallizationWithWaterSpout(BattleTestHelper helper)
      When a Pokémon is Terastallized, moves with variable power based on other factors (such as Water Spout) are not boosted, regardless of what its base power would be when used.

      In this Single Battle test, a Kyogre at 1% HP with the Water Tera Type that knows Water Spout faces a Toxapex that know the move Sleep Talk.

           Turn 1
           The Kyogre Terastallizes into the Water type.
           The Kyogre uses Water Spout on the Toxapex.
           The Toxapex uses Sleep Talk.
           -
           After Turn 1
           We verify that the Kyogre Terastallized.
           We verify that the Terastallized-Water Spout did not have a power of 60.
       
    • testTerastallizationVsSoak

      public static CompletableFuture<TestResult> testTerastallizationVsSoak(BattleTestHelper helper)
      Terastallized Pokémon cannot have their type changed from moves such as Soak.

      In this test, a Regice with the Grass Tera Type that knows Sleep Talk faces a Sobble that knows the move Soak.

           Turn 1
           The Regice Terastallizes into the Grass type.
           The Regice uses Sleep Talk.
           The Sobble uses Soak on the Regice.
           -
           After Turn 1
           We verify that the Regice Terastallized.
           We verify that the Regice is still Grass-type and only Grass-type.
       
    • testTerastallizationWithDoubleShock

      public static CompletableFuture<TestResult> testTerastallizationWithDoubleShock(BattleTestHelper helper)
      Terastallized Pokémon cannot have their type changed from moves such as Double Shock.

      In this test, a Pawmot with the Electric Tera Type that knows Double Shock faces a Zarude that knows the move Sleep Talk.

           Turn 1
           The Pawmot Terastallizes into the Electric type.
           The Pawmot uses Double Shock.
           The Zarude uses Sleep Talk on the Pawmot.
           -
           After Turn 1
           We verify that the Pawmot Terastallized.
           We verify that the Pawmot is still Electric-type and only Electric-type.
       
    • testTerastallizationWithImposter

      public static CompletableFuture<TestResult> testTerastallizationWithImposter(BattleTestHelper helper)
      Terastallized Pokémon cannot have their type changed from abilities such as Imposter.

      In this test, a Ditto with the Imposter ability and the Electric Tera Type that knows Sleep Talk faces a Zarude that knows the move Sleep Talk. The Ditto has a Magikarp on its team to switch in and out with.

           Before Turn 1
           The Ditto transforms into the Zarude.
           Turn 1
           The Ditto-Zarude Terastallizes into the Electric type. The Ditto-Zarude uses Sleep Talk.
           The Zarude uses Sleep Talk on the Ditto.
           Turn 2
           The Ditto-Zarude switches out. The Magikarp switches in.
           The Zarude uses Sleep Talk on the Ditto.
           Turn 3
           The Magikarp switches out. The Ditto switches in and transforms into the Zarude.
           The Zarude uses Sleep Talk on the Ditto.
           -
           After Turn 3
           We verify that the Ditto Terastallized.
           We verify that the Ditto is Electric-type and only Electric-type.
       
    • testTerastallizationWithProtean

      public static CompletableFuture<TestResult> testTerastallizationWithProtean(BattleTestHelper helper)
      Terastallized Pokémon cannot have their type changed from abilities such as Protean.

      In this test, a Frogadier with the Protean ability, an Electric Tera Type, and Water Gun faces a Zarude that knows the move Sleep Talk.

           Turn 1
           The Frogadier Terastallizes into the Electric type.
           The Frogadier uses Water Gun.
           The Zarude uses Sleep Talk on the Frogadier.
           -
           After Turn 1
           We verify that the Frogadier Terastallized.
           We verify that the Frogadier is still Electric-type and only Electric-type.
       
    • testTerastallizationWithTransform

      public static CompletableFuture<TestResult> testTerastallizationWithTransform(BattleTestHelper helper)
      Terastallized Pokémon cannot have their type changed from moves such as Transform.

      In this test, a Ditto with the Limber ability, an Electric Tera Type, and Transform faces a Zarude that knows the move Sleep Talk.

           Turn 1
           The Ditto Terastallizes into the Electric type.
           The Ditto uses Transform.
           The Zarude uses Sleep Talk on the Ditto.
           -
           After Turn 1
           We verify that the Ditto Terastallized.
           We verify that the Ditto is transformed.
           We verify that the Ditto is still Electric-type and only Electric-type.
       
    • testTerastallizationWithTransformBeforeTera

      public static CompletableFuture<TestResult> testTerastallizationWithTransformBeforeTera(BattleTestHelper helper)
      A Pokémon using Transform before Terastallizing will not copy its opponent's Tera Type and will instead keep its own.

      In this test, a Ditto with the Limber ability and an Electric Tera Type, that knows Sleep Talk and Transform faces a Zarude with the Grass Tera Type that knows the move Sleep Talk.

           Turn 1
           The Ditto uses Transform and becomes a Zarude.
           The Zarude uses Sleep Talk on the Ditto.
           Turn 2
           The Ditto Terastallizes.
           The Ditto uses Sleep Talk.
           The Zarude uses Sleep Talk on the Ditto.
           -
           After Turn 1
           We verify that the Ditto is transformed.
           We verify that the Ditto's Tera Type is Electric.
           After Turn 2
           We verify that the Ditto is transformed.
           We verify that the Ditto Terastallized.
           We verify that the Ditto is Electric-type and only Electric-type.
       
    • testTerastallizationStellarTypeWithTransform

      public static CompletableFuture<TestResult> testTerastallizationStellarTypeWithTransform(BattleTestHelper helper)
      If a Pokémon Terastallizes into the Stellar type and uses Transform, it will fail. .

      In this test, a Ditto with the Limber ability, a Stellar Tera Type, and Transform faces a Zarude that knows the move Sleep Talk.

           Turn 1
           The Ditto Terastallizes into the Stellar type.
           The Ditto uses Transform.
           The Zarude uses Sleep Talk on the Ditto.
           -
           After Turn 1
           We verify that the Ditto Terastallized.
           We verify that the Ditto is not transformed.
           We verify that the Ditto is still Stellar-type and only Stellar-type.
       
    • testTerastallizationEndsUponFainting

      public static CompletableFuture<TestResult> testTerastallizationEndsUponFainting(BattleTestHelper helper)
      The Terastal phenomenon lasts until the battle ends or the Terastallized Pokémon faints.

      In this test, a Regice with the Fire Tera Type that knows Sleep Talk and is at 1% HP faces a Sobble that knows the move Water Gun. The Regice has a Magikarp on its team to switch with.

           Turn 1
           The Regice Terastallizes into the Fire type.
           The Regice uses Sleep Talk.
           The Sobble uses Water Gun on the Regice.
           The Magikarp switches in.
           Before Turn 2
           The Regice magically revives.
           Turn 2
           The Magikarp switches out. The Regice switches in.
           The Sobble uses Water Gun.
           -
           After Turn 1
           We verify that the Regice fainted.
           We verify that the Regice is no longer Terastallized.
           We verify that the Regice is only Ice-type.
           After Turn 2
           We verify that the Regice was revived.
           We verify that the Regice is not Terastallized.
           We verify that the Regice is only Ice-type.