Class CommanderTests

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

public class CommanderTests extends Object
Tests for Commander
  • Constructor Details

    • CommanderTests

      public CommanderTests()
  • Method Details

    • testCommanderRaisesDondozoStats

      public static CompletableFuture<TestResult> testCommanderRaisesDondozoStats(BattleTestHelper helper)
      When a Tatsugiri with Commander is on the same side of the field as a Dondozo, it will enter the Dondozo's mouth and the Dondozo will have its Attack, Defense, Special Attack, Special Defense, and Speed raised by two stages each.

      In this Double Battle test, a Tatsugiri with the Commander ability is on a team with a Dondozo. They both know the move Sleep Talk. They face two Magikarp that know the move Splash.

           Before Turn 1
           The Tatsugiri hops into the Dondozo's mouth.
           Turn 1
           The Dondozo uses Sleep Talk.
           Both Magikarp use Splash.
           -
           After Turn 1
           We verify that the Dondozo's Attack was raised by two stages.
           We verify that the Dondozo's Defense was raised by two stages.
           We verify that the Dondozo's Special Attack was raised by two stages.
           We verify that the Dondozo's Special Defense was raised by two stages.
           We verify that the Dondozo's Speed was raised by two stages.
       
    • testCommanderPreventsDondozoSwitchingOut

      public static CompletableFuture<TestResult> testCommanderPreventsDondozoSwitchingOut(BattleTestHelper helper)
      While Tatsugiri is inside Dondozo's mouth, the latter will be unable to switch out (even if Tatsugiri faints) and cannot be forced out. A held Red Card can still be consumed, but will have no effect.

      In this Double Battle test, a Tatsugiri with the Commander ability is on a team with a Dondozo. The Tatsugiri knows the move Sleep Talk and the Dondozo knows Tackle. They are on a team with a Spewpa that knows Sleep Talk. They face a Magikarp that holds a Red Card and knows the moves Splash and a Rufflet that knows the moves Sleep Talk and Whirlwind.

           Before Turn 1
           The Tatsugiri hops into the Dondozo's mouth.
           Turn 1
           The Magikarp uses Splash.
           The Rufflet uses Sleep Talk.
           The Dondozo's trainer attempts to switch out the Dondozo for the Spewpa.
           Turn 2
           The Magikarp uses Splash.
           The Rufflet uses Sleep Talk.
           The Dondozo uses Tackle on the Magikarp.
           Turn 3
           The Magikarp uses Splash.
           The Rufflet uses Whirlwind on the Dondozo.
           The Dondozo uses Tackle on the Magikarp.
           -
           After Turn 1
           We verify that the Tatsugiri is on the battlefield.
           We verify that the Dondozo is on the battlefield.
           We verify that the Spewpa is not on the battlefield.
           After Turn 2
           We verify that the Tatsugiri is on the battlefield.
           We verify that the Dondozo is on the battlefield.
           We verify that the Spewpa is not on the battlefield.
           We verify that the Magikarp no longer holds the Red Card.
           After Turn 3
           We verify that the Tatsugiri is on the battlefield.
           We verify that the Dondozo is on the battlefield.
           We verify that the Spewpa is not on the battlefield.
       
    • testCommanderPreventsNoGuardFromHitting

      public static CompletableFuture<TestResult> testCommanderPreventsNoGuardFromHitting(BattleTestHelper helper)
      Attacks made by a Pokémon with the No Guard ability will still miss the Tatsugiri.

      In this Double Battle test, a Tatsugiri with the Commander ability is on a team with a Dondozo. They both know the move Sleep Talk. They face a Karrablast with its hidden ability No Guard that knows the move Peck and a Magikarp that knows Splash.

           Before Turn 1
           The Tatsugiri hops into the Dondozo's mouth.
           Turn 1
           The Magikarp uses Splash.
           The Karrablast uses Peck and targets the Tatsugiri. Normal players will not be able to do this.
           The Dondozo uses Sleep Talk.
           -
           After Turn 1
           We verify that the Tatsugiri hasn't lost any HP.
       
    • testCommanderDoesNotPreventSandstormDamage

      public static CompletableFuture<TestResult> testCommanderDoesNotPreventSandstormDamage(BattleTestHelper helper)
      Tatsugiri will continue to take damage from sandstorms.

      In this Double Battle test, a Tatsugiri with the Commander ability is on a team with a Dondozo. They both know the move Sleep Talk. They face a Hippopotas with the ability Sand Stream that also knows Sleep Talk and a Magikarp that knows Splash.

           Before Turn 1
           The Tatsugiri hops into the Dondozo's mouth.
           The Hippopotas' Sand Stream ability activates and creates a sandstorm.
           Turn 1
           The Magikarp uses Splash.
           The Dondozo uses Sleep Talk.
           The Hippopotas uses Sleep Talk
           -
           After Turn 1
           We verify that the Tatsugiri has taken damage.
       
    • testCommanderDoesNotPreventPoisonContinuing

      public static CompletableFuture<TestResult> testCommanderDoesNotPreventPoisonContinuing(BattleTestHelper helper)
      Tatsugiri will continue to take damage from status conditions (such as poison) if it has already gained one prior to entering Dondozo's mouth.

      In this Double Battle test, a Tatsugiri with the Commander ability is on a team with a Spewpa and a Dondozo. They all know the move Sleep Talk. They face a Butterfree that knows the moves Poison Powder and Sleep Talk as well as a Magikarp that knows Splash.

           Turn 1
           The Tatsugiri uses Sleep Talk.
           The Magikarp uses Splash.
           The Butterfree uses Poison Powder on the Tatsugiri.
           The Spewpa uses Sleep Talk.
           Turn 2
           The Spewpa is switched out for the Dondozo.
           The Tatsugiri immediately hops into the Dondozo's mouth.
           The Magikarp uses Splash.
           The Butterfree uses Sleep Talk.
           -
           After Turn 1
           We verify that the Tatsugiri has the poison status.
           We verify that the Tatsugiri has taken damage.
           After Turn 2
           We verify that the Tatsugiri has the poison status.
           We verify that the Tatsugiri has less HP than it did at the end of the first turn.
       
    • testCommanderDoesNotStopPerishSong

      public static CompletableFuture<TestResult> testCommanderDoesNotStopPerishSong(BattleTestHelper helper)
      The effect of Perish Song will continue as normal while a Tatsugiri is inside a Dondozo's mouth.

      In this Double Battle test, a Tatsugiri with the Commander ability is on a team with a Spewpa and a Dondozo. They all know the move Sleep Talk. They face a Smoochum that knows the moves Perish Song and Sleep Talk as well as a Snover with the Soundproof ability that also knows Sleep Talk.

           Turn 1
           The Tatsugiri uses Sleep Talk.
           The Smoochum uses Perish Song. It doesn't affect the Snover.
           The Snover uses Sleep Talk.
           The Spewpa uses Sleep Talk.
           Turn 2
           The Spewpa is switched out for the Dondozo.
           The Tatsugiri immediately hops into the Dondozo's mouth.
           The Smoochum uses Sleep Talk.
           The Snover uses Sleep Talk.
           Turn 3
           The Smoochum uses Sleep Talk.
           The Snover uses Sleep Talk.
           The Dondozo uses Sleep Talk.
           Turn 4
           The Smoochum uses Sleep Talk.
           The Snover uses Sleep Talk.
           The Dondozo uses Sleep Talk.
           The Perish Count reaches 0.
           -
           After Turn 1
           We verify that the Tatsugiri has the Perish Song status.
           After Turn 2
           We verify that the Tatsugiri has the Perish Song status.
           After Turn 4
           We verify that the Smoochum fainted.
           We verify that the Tatsugiri fainted.
       
    • testCommanderActivationCancelsMovesAndPreventsDamage

      public static CompletableFuture<TestResult> testCommanderActivationCancelsMovesAndPreventsDamage(BattleTestHelper helper)
      If Dondozo is switched in when Tatsugiri is already on the field, Commander will immediately activate and cancel Tatsugiri's selected move; any moves targeting Tatsugiri that turn will also miss.

      In this Double Battle test, a Tatsugiri with the Commander ability is on a team with a Spewpa and a Dondozo. The Tatsugiri knows Water Gun while the Spewpa and Dondozo know Sleep Talk. They face a Smoochum that knows the move Confusion as well as a Snover that also knows Sleep Talk.

           Turn 1
           The Tatsugiri's trainer selects Water Gun for the Tatsugiri to use on Snover.
           The Spewpa is switched out for the Dondozo.
           The Tatsugiri immediately hops into the Dondozo's mouth.
           The Smoochum uses Confusion targeting the Tatsugiri.
           The Snover uses Sleep Talk.
           -
           After Turn 1
           We verify that the Snover did not take any damage.
           We verify that the Tatsugiri did not take any damage.
           We verify that the Dondozo did not take any damage.
           We verify that the Smoochum did not take any damage.
       
    • testCommanderKeepsTatsugiriInPositionOne

      public static CompletableFuture<TestResult> testCommanderKeepsTatsugiriInPositionOne(BattleTestHelper helper)
      When a Dondozo faints, a Tatsugiri using Commander to reside in a Dondozo's mouth will return to its normal position in battle.

      In this Double Battle test, a Tatsugiri with the Commander ability is on a team with a Dondozo. They both know the move Sleep Talk. They face a Whiscash that knows Fissure and a Magikarp that knows Splash.

           Before Turn 1
           The Tatsugiri hops into the Dondozo's mouth.
           Turn 1
           The Magikarp uses Splash.
           The Whiscash uses Fissure.
           The Dondozo uses Sleep Talk.
           -
           After Turn 1
           We verify that the Dondozo fainted.
           We verify that the Tatsugiri is at the same position on the battlefield that it started on.
       
    • testCommanderKeepsTatsugiriInPositionTwo

      public static CompletableFuture<TestResult> testCommanderKeepsTatsugiriInPositionTwo(BattleTestHelper helper)
      When a Dondozo faints, a Tatsugiri using Commander to reside in a Dondozo's mouth will return to its normal position in battle.

      In this Double Battle test, a Tatsugiri with the Commander ability is on a team with a Dondozo. They both know the move Sleep Talk. They face a Whiscash that knows Fissure and a Magikarp that knows Splash.

           Before Turn 1
           The Tatsugiri hops into the Dondozo's mouth.
           Turn 1
           The Magikarp uses Splash.
           The Whiscash uses Fissure on the Dondozo.
           The Dondozo uses Sleep Talk.
           -
           After Turn 1
           We verify that the Dondozo fainted.
           We verify that the Tatsugiri is at the same position on the battlefield that it started on.
       
    • testCommanderDoesNotWorkWithReplacementTatsugiri

      public static CompletableFuture<TestResult> testCommanderDoesNotWorkWithReplacementTatsugiri(BattleTestHelper helper)
      Commander will not reactivate if Tatsugiri faints and is replaced with another Tatsugiri with Commander.

      In this Double Battle test, a Tatsugiri at 3% HP with the Commander ability is on a team with a Dondozo. There is a second Tatsugiri on their team and they all know the move Sleep Talk. They face a Hippopotas with the Sand Stream ability that knows Sleep Talk and a Magikarp that knows Splash.

           Before Turn 1
           The Tatsugiri hops into the Dondozo's mouth.
           The Hippopotas' Sand Stream creates a sandstorm.
           Turn 1
           The Magikarp uses Splash.
           The Hippopotas uses Sleep Talk.
           The Dondozo uses Sleep Talk.
           Turn 2
           The Magikarp uses Splash.
           The Hippopotas uses Sleep Talk.
           The Dondozo uses Sleep Talk.
           -
           After Turn 1
           We verify that the first Tatsugiri fainted.
           We verify that the Dondozo does not have the Commanded status.
           After Turn 2
           We verify that the Dondozo does not have the Commanded status.
           We verify that the second Tatsugiri does not have the InMouth status.
       
    • testCommanderWorkWithRevivedDondozo

      public static CompletableFuture<TestResult> testCommanderWorkWithRevivedDondozo(BattleTestHelper helper)
      Commander will not reactivate if Tatsugiri faints and is replaced with another Tatsugiri with Commander; however, Commander can reactivate if Dondozo is revived after fainting.

      In this Double Battle test, a Tatsugiri with the Commander ability is on a team with a Dondozo They both know the move Sleep Talk. There is also a Pawmot with Revival Blessing on their team. They face a Whiscash that knows Fissure and a Magikarp that knows Splash.

           Before Turn 1
           The Tatsugiri hops into the Dondozo's mouth.
           Turn 1
           The Magikarp uses Splash.
           The Whiscash uses Fissure on the Dondozo.
           The Dondozo uses Sleep Talk.
           The fainted Dondozo is replaced by the Pawmot.
           Turn 2
           The Pawmot uses Revival Blessing to revive the Dondozo.
           The Tatsugiri uses Sleep Talk.
           The Magikarp uses Splash.
           The Whiscash uses Fissure on the Pawmot.
           The fainted Pawmot is replaced by the Dondozo.
           Before Turn 3
           The Tatsugiri hops into the Dondozo's mouth.
           Turn 3
           The Magikarp uses Splash.
           The Whiscash uses Sleep Talk.
           The Dondozo uses Sleep Talk.
           -
           After Turn 1
           We verify that the Dondozo fainted.
           We verify that the Tatsugiri does not have the InMouth status.
           After Turn 2
           We verify that the Dondozo is not fainted.
           We verify that the Pawmot is fainted.
           We verify that the Dondozo is on the battlefield.
           We verify that the Dondozo has the Commanded status.
           We verify that the Tatsugiri has the InMouth status.
           After Turn 3
           We verify that the Dondozo has the Commanded status.
           We verify that the Tatsugiri has the InMouth status.
       
    • testCommanderAllowsSimpleBeam

      public static CompletableFuture<TestResult> testCommanderAllowsSimpleBeam(BattleTestHelper helper)
      Commander can be replaced by Simple Beam.

      In this Single Battle test, a Tatsugiri with the Commander ability that knows Sleep Talk faces a Woobat that knows the move Simple Beam.

           Turn 1
           The Tatsugiri uses Sleep Talk.
           The Woobat uses Simple Beam.
           -
           After Turn 1
           We verify that the Tatsugiri's ability has become Simple.
       
    • testCommanderDoesNotBlockImposter

      public static CompletableFuture<TestResult> testCommanderDoesNotBlockImposter(BattleTestHelper helper)
      Imposter can successfully Transform into a Tatsugiri in Dondozo's mouth.

      In this Double Battle test, a Tatsugiri with the Commander ability is on a team with a Dondozo They both know the move Sleep Talk. They face a Ditto with the Imposter ability that knows Sleep Talk and a Magikarp that knows Splash.

           Before Turn 1
           The Tatsugiri hops into the Dondozo's mouth.
           The Ditto transforms into the Tatsugiri.
           Turn 1
           The Magikarp uses Splash.
           The Ditto-Tatsugiri uses Sleep Talk.
           The Dondozo uses Sleep Talk.
           -
           After Turn 1
           We verify that the Ditto has the Transformed status.
           We verify that the Ditto has transformed into a Tatsugiri.
       
    • testCommanderActivatesIfDondozoIsUnderwater

      public static CompletableFuture<TestResult> testCommanderActivatesIfDondozoIsUnderwater(BattleTestHelper helper)
      Commander still activates if Dondozo is in the invulnerable phase of Dive.

      In this Double Battle test, a Spewpa that knows the move Sleep Talk is on a team with a Dondozo that knows the move Dive and a Tatsugiri with the Commander ability that knows Sleep Talk. They face two Magikarp, one that knows Tackle and one that knows Splash.

           Turn 1
           The first Magikarp uses Tackle on the Dondozo.
           The second Magikarp uses Splash.
           The Dondozo uses Dive.
           The Spewpa uses Sleep Talk.
           Turn 2
           The Spewpa is switched out and the Tatsugiri is switched in.
           The Tatsugiri hops in the Dondozo's mouth.
           The first Magikarp uses Tackle on the Spewpa's location, but misses the Tatsugiri.
           The second Magikarp uses Splash.
           -
           After Turn 1
           We verify that the Dondozo has the Submerged status.
           After Turn 2
           We verify that the Dondozo has the Commanded status.
           We verify that the Tatsugiri has the InMouth status.
           We verify that the Tatsugiri has not taken any damage.
       
    • testCommanderActivatesIfTatsugiriIsUnderwater

      public static CompletableFuture<TestResult> testCommanderActivatesIfTatsugiriIsUnderwater(BattleTestHelper helper)
      Commander still activates if Dondozo is in the invulnerable phase of Dive.

      In this Double Battle test, a Spewpa that knows the move Sleep Talk is on a team with a Tatsugiri with the Commander ability that knows the move Dive and a Dondozo that knows Sleep Talk. They face two Magikarp, one that knows Tackle and one that knows Splash.

           Turn 1
           The Tatsugiri uses Dive.
           The first Magikarp uses Tackle on the Tatsugiri.
           The second Magikarp uses Splash.
           The Spewpa uses Sleep Talk.
           Turn 2
           The Spewpa is switched out and the Dondozo is switched in.
           The Tatsugiri hops in the Dondozo's mouth. It's Dive should be canceled.
           The first Magikarp uses Tackle on the Tatsugiri, but should miss.
           The second Magikarp uses Splash.
           -
           After Turn 1
           We verify that the Tatsugiri has the Submerged status.
           We verify that the Tatsugiri has not taken any damage.
           After Turn 2
           We verify that the Dondozo has the Commanded status.
           We verify that the Tatsugiri has the InMouth status.
           We verify that the Tatsugiri has not taken any damage.