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

public class ThiefTests extends Object
  • Constructor Details

    • ThiefTests

      public ThiefTests()
  • Method Details

    • testShouldStealTheHeldItemOfTheTarget

      public static CompletableFuture<TestResult> testShouldStealTheHeldItemOfTheTarget(BattleTestHelper helper)
      Thief steals the held item of the target.

      In this test, a Mew that knows Thief faces a Blissey that is holding a Shed Shell and knows Soft-Boiled. - Turn 1 The Mew attacks the Blissey with Thief. The Mew now has the Shed Shell and the Blissey has nothing. The Blissey uses Soft-Boiled and heals. - We verify that the Mew has a held item. We verify that the Blissey does not have a held item.

    • testShouldFailToStealHeldItemsIfTheUserHasAHeldItem

      public static CompletableFuture<TestResult> testShouldFailToStealHeldItemsIfTheUserHasAHeldItem(BattleTestHelper helper)
      The user of Thief fails to steal the held item of the target if the user already has a held item.

      In this test, a Mew that is holding a Focus Sash and that knows Thief faces a Blissey that is holding a Shed Shell and knows Soft-Boiled. - Turn 1 The Mew attacks the Blissey with Thief. No thievery takes place. The Blissey uses Soft-Boiled and heals. - We verify that the Mew has a held item. We verify that the Blissey has a held item.

    • testShouldTakeLifeOrbDamageFromAStolenLifeOrb

      public static CompletableFuture<TestResult> testShouldTakeLifeOrbDamageFromAStolenLifeOrb(BattleTestHelper helper)
      The user of Thief will take damage from Life Orb if it obtains a Life Orb from its target.

      In this test, a Mew that knows Thief faces a Blissey that is holding a Life Orb and knows Soft-Boiled. - Turn 1 The Mew attacks the Blissey with Thief. The Mew obtains Blissey's Life Orb. The Mew takes Life Orb damage. The Blissey uses Soft-Boiled and heals. - We verify that the Mew has a held item. We verify that the Blissey does not have a held item. We verify that the Mew is not at full health.

    • testShouldNotRemoveItemsIfTheUserFaintsMidMoveDueToTarget

      public static CompletableFuture<TestResult> testShouldNotRemoveItemsIfTheUserFaintsMidMoveDueToTarget(BattleTestHelper helper)
      If the user faints due to the target's ability (e.g. Rough Skin or Iron Barbs) or held Rocky Helmet, it cannot steal the target's held item.

      In this test, a Shedinja that knows the move Thief and a Magikarp that knows Splash face off against a Ferrothorn that is holding a Rocky Helmet, has the Iron Barbs ability, and that knows Curse. - Turn 1 Shedinja uses Thief. Shedinja faints during the attack. Ferrothorn's Rocky Helmet is not removed or stolen. Ferrothorn uses Curse. - We verify that the Shedinja has fainted. We verify that the Ferrothorn has a held item.

    • testShouldStealItemsFromTargetsWithStickyHoldIfTheTargetFaints

      public static CompletableFuture<TestResult> testShouldStealItemsFromTargetsWithStickyHoldIfTheTargetFaints(BattleTestHelper helper)
      If Thief causes a Pokémon with the Sticky Hold Ability to faint, it can now steal its held item.

      In this test, a Bombirdier that knows the move Thief faces an Accelgor that is holding a Lum Berry, has the Sticky Hold ability, and that knows Sleep Talk. Bombirdier has the highest base Attack stat among Pokémon that learn Thief upon leveling up. Accelgor has the lowest base Defense stat among Pokémon that have Sticky Hold. - Turn 1 Accelgor uses Sleep Talk. Bombirdier uses Thief. Turn 2 Accelgor uses Sleep Talk. Bombirdier uses Thief. Accelgor faints. Bombirdier receives Accelgor's Lum Berry. Magikarp switches in to replace Accelgor. - After turn 1... We verify that the Bombirdier does not have a held item. We verify that the Accelgor has a held item. After turn 2... We verify that the Accelgor has fainted. We verify that the Bombirdier has a held item. We verify that the Accelgor does not have a held item.

    • testFocusSashActivatesAndIsConsumedBeforeThiefCanStealIt

      public static CompletableFuture<TestResult> testFocusSashActivatesAndIsConsumedBeforeThiefCanStealIt(BattleTestHelper helper)
      If the target's consumable held item is triggered by Thief (such as a Focus Sash), it will be consumed before it can be stolen.

      In this test, a Mew that knows the move Thief faces off against a Hoopa that is holding a Focus Sash and that knows the move Sleep Talk. - Turn 1 Mew uses Thief. Hoopa's Focus Sash activates and it survives at 1 HP. The Focus Sash is consumed. Hoopa uses Sleep Talk. - We verify that Hoopa is at 1 HP. We verify that Hoopa does not have a held item. We verify that Mew does not have a held item.

    • testFocusBandActivatesBeforeThiefCanStealItAndIsThenStolen

      public static CompletableFuture<TestResult> testFocusBandActivatesBeforeThiefCanStealItAndIsThenStolen(BattleTestHelper helper)
      A Focus Band will trigger before Thief can steal it.

      In this test, a Mew that knows the move Thief faces off against a Hoopa that is holding a Focus Band and that knows the move Sleep Talk. - Turn 1 Mew uses Thief. Hoopa's Focus Band activates and it survives at 1 HP. The Focus Band is not consumed, but Thief steals it. Hoopa uses Sleep Talk. - We verify that Hoopa is at 1 HP. We verify that Hoopa does not have a held item. We verify that Mew has a held item.

    • testColburBerryActivatesAndIsConsumedBeforeThiefCanStealIt

      public static CompletableFuture<TestResult> testColburBerryActivatesAndIsConsumedBeforeThiefCanStealIt(BattleTestHelper helper)
      If the target's consumable held item is triggered by Thief (such as a Colbur Berry), it will be consumed before it can be stolen.

      In this test, a Mew that knows the move Thief faces off against a Hoopa that is holding a Colbur Berry and that knows the move Sleep Talk. - Turn 1 Mew uses Thief. Hoopa's Colbur Berry activates and cuts the amount of damage taken in half. The Colbur Berry is consumed, and Thief does not steal it. Hoopa uses Sleep Talk. - We verify that Hoopa does not have a held item. We verify that Mew does not have a held item.

    • testShouldFailToStealIfItHitsASubstitute

      public static CompletableFuture<TestResult> testShouldFailToStealIfItHitsASubstitute(BattleTestHelper helper)
      Thief cannot steal an item if it hits a Pokémon's substitute.

      In this test, a Mew that knows Thief faces a Gengar that is holding a Shed Shell and knows Substitute. - Turn 1 The Gengar uses Substitute. The Mew attacks the Gengar with Thief. No thievery takes place. - We verify that the Mew does not have a held item. We verify that the Gengar has a held item.

    • testShouldSuccessfullyStealIfItHitsASubstituteWithInfiltrator

      public static CompletableFuture<TestResult> testShouldSuccessfullyStealIfItHitsASubstituteWithInfiltrator(BattleTestHelper helper)
      Thief cannot steal an item if it hits a Pokémon's substitute, unless the Thief user has the Infiltrator ability.

      In this test, a Noibat that has the Infiltrator ability and that knows Thief faces a Gengar that is holding a Shed Shell and knows Substitute. - Turn 1 The Gengar uses Substitute. The Noibat attacks the Gengar with Thief. Noibat now has Gengar's Shed Shell. - We verify that the Noibat has a held item. We verify that the Gengar does not have a held item.