Class MegaEvolutionTests

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

public class MegaEvolutionTests extends Object
  • Constructor Details

    • MegaEvolutionTests

      public MegaEvolutionTests()
  • Method Details

    • testNewAbilityTriggersOnMegaEvolution

      public static CompletableFuture<TestResult> testNewAbilityTriggersOnMegaEvolution(BattleTestHelper helper)
    • testNewAbilityTriggersOnSwitchMoveAfterSwitchingOut

      public static CompletableFuture<TestResult> testNewAbilityTriggersOnSwitchMoveAfterSwitchingOut(BattleTestHelper helper)
    • testNewAbilityTriggersOnHardSwitchAfterSwitchingOut

      public static CompletableFuture<TestResult> testNewAbilityTriggersOnHardSwitchAfterSwitchingOut(BattleTestHelper helper)
    • testNewAbilityTriggersOnReplacingFaintedPokemon

      public static CompletableFuture<TestResult> testNewAbilityTriggersOnReplacingFaintedPokemon(BattleTestHelper helper)
    • testMegaEvolvingAndFaintingAndReviving

      public static CompletableFuture<TestResult> testMegaEvolvingAndFaintingAndReviving(BattleTestHelper helper)
      If a Mega Evolved Pokémon faints, that Pokémon should not be Mega Evolved, nor have any of the Mega Evolution properties (better stats, new types, new abilities) if it is revived and sent back onto the battlefield.

      In this test, a Pinsir with the Hyper Cutter ability that holds a Pinsirite and knows the move Tackle faces a Virizion that knows Sleep Talk and an Iron Thorns that knows Stone Edge and Sleep Talk. The Pinsir also has a Ducklett on its team that knows Splash.

           Turn 1
           Pinsir Mega Evolves
           Virizion uses Sleep Talk.
           Pinsir uses Tackle. Virizion faints. Iron Thorns switches in.
           Turn 2
           Pinsir uses Tackle.
           Iron Thorns uses Stone Edge. Pinsir faints. Ducklett switches in.
           Turn 3
           Pinsir is artificially revived.
           Ducklett switches out and Pinsir switches in.
           Iron Thorns uses Sleep Talk.
           Turn 4
           Pinsir uses Tackle.
           Iron Thorns uses Sleep Talk.
           -
           After Turn 1
           We verify that the Pinsir is Mega Evolved.
           We verify that the Pinsir's ability is Aerilate.
           We verify that the Pinsir's Tackle is Flying-type.
           We verify that the Pinsir's Tackle against the Virizion hit for 4x super-effectiveness.
           We verify that the Pinsir is part Flying-type.
           We verify that the Pinsir's Base Stats increased.
           After Turn 4
           We verify that the Pinsir is not Mega Evolved.
           We verify that the Pinsir's ability is Hyper Cutter.
           We verify that the Pinsir's Tackle is Normal-type.
           We verify that the Pinsir's Tackle against the Iron Thorns hit for 1/2x effectiveness.
           We verify that the Pinsir is not Flying-type.
           We verify that the Pinsir's Base Stats went back to normal.
       
    • testMegaEvolvedPokemonSwitchingOutAndBackIn

      public static CompletableFuture<TestResult> testMegaEvolvedPokemonSwitchingOutAndBackIn(BattleTestHelper helper)
      If a Mega Evolved Pokémon that has multiple Mega forms switches out, they should switch back in with the same form.

      In this test, a Charizard that holds a Charizardite Y and knows the move Smokescreen faces a Kecleon that knows Sleep Talk. The Charizard also has a Grotle on its team to switch with.

           Before Turn 1
           The Charizard Mega Evolves.
           Turn 1
           The Charizard uses Smokescreen.
           The Kecleon uses Sleep Talk.
           Turn 2
           The Charizard switches out. A Grotle switches in.
           The Kecleon uses Sleep Talk.
           Turn 3
           The Grotle switches out and the Charizard switches back in.
           The Kecleon uses Sleep Talk.
           -
           After Turn 1
           We verify that the Charizard is Mega Evolved.
           We verify that the Charizard's form is its Mega Y form.
           After Turn 2
           We verify that the Charizard is not on the battlefield.
           After Turn 3
           We verify that the Charizard is on the battlefield.
           We verify that the Charizard is Mega Evolved.
           We verify that the Charizard's form is its Mega Y form.