Class DragonTailTests

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

public class DragonTailTests extends Object
Tests for Dragon Tail
  • Constructor Details

    • DragonTailTests

      public DragonTailTests()
  • Method Details

    • testDragonTail

      public static CompletableFuture<TestResult> testDragonTail(BattleTestHelper helper)
      Dragon Tail inflicts damage and has decreased priority. In a Trainer battle, it will switch out the target to the next Pokémon in line that has not fainted.

      In this test, a Tyrantrum that knows Dragon Tail faces a Tyrunt that knows Charm. The Tyrunt has a Dipplin and a Hydrapple on its team to switch into.

           Turn 1
           The Tyrunt uses Charm.
           The Tyrantrum uses Dragon Tail.
           -
           After Turn 1
           We verify that the Tyrantrum's Attack was lowered by two stages.
           We verify that the Tyrunt took damage.
           We verify that the Tyrunt is no longer on the battlefield.
           We verify that the Dipplin is on the battlefield.
           We verify that the Hydrapple isn't on the battlefield.
           We verify that the Dragon Tail's result was recorded as dealing damage.
           We verify that the Dragon Tail's result was recorded as succeeding.
           We verify that the Dragon Tail's result was recorded with a priority of -6.
           We verify that the Dragon Tail's result was recorded with a base power of 60.
       
    • testDragonTailVsRockyHelmet

      public static CompletableFuture<TestResult> testDragonTailVsRockyHelmet(BattleTestHelper helper)
      If using this move causes the user to faint (such as if the target is holding a Rocky Helmet), the target will not be forced to switch.

      In this test, a Tyrantrum at 5% HP that knows Dragon Tail faces a Tyrunt that holds a Rocky Helmet and knows Charm. The Tyrantrum has a Dragalge on its team to switch into. The Tyrunt has a Dipplin and a Hydrapple on its team to switch into.

           Turn 1
           The Tyrunt uses Charm.
           The Tyrantrum uses Dragon Tail. The Tyrantrum takes damage from the Tyrunt's Rocky Helmet.
           -
           After Turn 1
           We verify that the Tyrantrum fainted.
           We verify that the Tyrunt took damage.
           We verify that the Tyrunt is on the battlefield.
           We verify that the Dipplin isn't on the battlefield.
       
    • testDragonTailVsRoughSkin

      public static CompletableFuture<TestResult> testDragonTailVsRoughSkin(BattleTestHelper helper)
      If using this move causes the user to faint (such as if the target has the ability Rough Skin), the target will not be forced to switch.

      In this test, a Tyrantrum at 5% HP that knows Dragon Tail faces a Druddigon with the Rough Skin ability that knows Leer. The Tyrantrum has a Dragalge on its team to switch into. The Druddigon has a Hydrapple on its team to switch into.

           Turn 1
           The Druddigon uses Leer.
           The Tyrantrum uses Dragon Tail. The Tyrantrum takes damage from the Druddigon's Rough Skin.
           -
           After Turn 1
           We verify that the Tyrantrum fainted.
           We verify that the Druddigon took damage.
           We verify that the Druddigon is on the battlefield.
           We verify that the Hydrapple isn't on the battlefield.
       
    • testDragonTailVsSuctionCups

      public static CompletableFuture<TestResult> testDragonTailVsSuctionCups(BattleTestHelper helper)
      Dragon Tail will fail to end wild Pokémon battles or switch out the opposing Trainer's Pokémon if the target has the Suction Cups ability.

      In this test, a Tyrantrum that knows Dragon Tail faces an Octillery with the Suction Cups ability that knows Lock-On. The Octillery has a Dipplin on its team to switch into.

           Turn 1
           The Octillery uses Lock-On.
           The Tyrantrum uses Dragon Tail.
           -
           After Turn 1
           We verify that the Tyrantrum has the LockOn status.
           We verify that the Octillery took damage.
           We verify that the Octillery is on the battlefield.
           We verify that the Dipplin isn't the battlefield.
       
    • testDragonTailVsIngrain

      public static CompletableFuture<TestResult> testDragonTailVsIngrain(BattleTestHelper helper)
      Dragon Tail will fail to end wild Pokémon battles or switch out the opposing Trainer's Pokémon if the target is under the effects of Ingrain.

      In this test, a Tyrantrum that knows Dragon Tail faces a Roselia that knows Ingrain. The Roselia has a Dipplin on its team to switch into.

           Turn 1
           The Roselia uses Ingrain.
           The Tyrantrum uses Dragon Tail.
           -
           After Turn 1
           We verify that the Roselia has the Ingrain status
           We verify that the Roselia took damage.
           We verify that the Roselia is on the battlefield.
           We verify that the Dipplin isn't the battlefield.
       
    • testDragonTailVsSubstitute

      public static CompletableFuture<TestResult> testDragonTailVsSubstitute(BattleTestHelper helper)
      Dragon Tail will fail to end wild Pokémon battles or switch out the opposing Trainer's Pokémon if the target has Substitute set up.

      In this test, a Tyrantrum that knows Dragon Tail faces a Gholdengo that knows Substitute. The Gholdengo has a Dipplin on its team to switch into.

           Turn 1
           The Gholdengo uses Substitute.
           The Tyrantrum uses Dragon Tail.
           -
           After Turn 1
           We verify that the Gholdengo has the Substitute status.
           We verify that the Gholdengo is on the battlefield.
           We verify that the Dipplin isn't the battlefield.
       
    • testDragonTailVsDynamax

      public static CompletableFuture<TestResult> testDragonTailVsDynamax(BattleTestHelper helper)
      When used on a Dynamax or Gigantamax Pokémon, Dragon Tail will deal damage but not force the target to switch out.

      In this test, a Tyrantrum that knows Dragon Tail faces a Hydrapple that knows Sleep Talk. The Hydrapple has a Dipplin on its team to switch into.

           Turn 1
           The Hydrapple uses Sleep Talk.
           The Tyrantrum uses Dragon Tail.
           -
           After Turn 1
           We verify that the Hydrapple is Dynamaxed.
           We verify that the Hydrapple is on the battlefield.
           We verify that the Dipplin isn't the battlefield.