Class PunchingGloveTests

java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.item.PunchingGloveTests

public class PunchingGloveTests extends Object
  • Constructor Details

    • PunchingGloveTests

      public PunchingGloveTests()
  • Method Details

    • testShouldPreventItemEffectsThatActivateFromContact

      public static CompletableFuture<TestResult> testShouldPreventItemEffectsThatActivateFromContact(BattleTestHelper helper)
      A Punching Glove held by a Pokémon prevents punching moves from making contact with the target.

      In this test, a Wynaut that is holding a Punching Glove and that knows the move Bullet Punch faces off against a Miltank that is holding a Rocky Helmet and that knows Sleep Talk. - Turn 1 Wynaut uses Bullet Punch. Miltank uses Sleep Talk, which fails. - We verify that the Wynaut was not damaged by the Miltank's Rocky Helmet.

    • testShouldNotPreventItemEffectsThatActivateFromContactIfUsingNonPunchingMove

      public static CompletableFuture<TestResult> testShouldNotPreventItemEffectsThatActivateFromContactIfUsingNonPunchingMove(BattleTestHelper helper)
      A Punching Glove held by a Pokémon does not prevent non-punching moves from making contact with the target.

      In this test, a Wynaut that is holding a Punching Glove and that knows the move Tackle faces off against a Miltank that is holding a Rocky Helmet and that knows Sleep Talk. - Turn 1 Miltank uses Sleep Talk, which fails. Wynaut uses Tackle. - We verify that the Wynaut was damaged by the Miltank's Rocky Helmet.

    • testShouldNotPreventMoveEffectsWhenDefending

      public static CompletableFuture<TestResult> testShouldNotPreventMoveEffectsWhenDefending(BattleTestHelper helper)
      A Punching Glove held by a Pokémon doesn't prevent attack effects from the target when defending.

      In this test, a Wynaut that is holding a Punching Glove and that knows the move Sleep Talk faces off against a Happiny that knows Lunge. - Turn 1 Happiny uses Lunge, which damages the Wynaut and lowers its Attack by one stage. Wynaut uses Sleep Talk. - We verify that the Wynaut's Attack has been lowered by one stage.

    • testShouldStopPickpocket

      public static CompletableFuture<TestResult> testShouldStopPickpocket(BattleTestHelper helper)
      A Punching Glove held by a Pokémon won't be stolen by the Pickpocket ability while using a punching attack.

      In this test, a Wynaut that is holding a Punching Glove and that knows the move Bullet Punch faces off against a Weavile that has the Pickpocket ability and knows the move Sleep Talk. - Turn 1 Wynaut uses Bullet Punch. Weavile uses Sleep Talk. - We verify that the Wynaut still has a held item.

    • testShouldPreventEffectsFromProtectMovesThatHaveSideEffects

      public static CompletableFuture<TestResult> testShouldPreventEffectsFromProtectMovesThatHaveSideEffects(BattleTestHelper helper)
      A Punching Glove prevents damage or effects from Protecting moves when attacking with a punching move.

      In this test, a Wynaut that is holding a Punching Glove and that knows the move Bullet Punch faces off against an Aggron that knows the moves Baneful Bunker, Obstruct, and Spiky Shield. - Turn 1 Aggron uses Baneful Bunker. Wynaut uses Bullet Punch. Bullet Punch deals no damage, and Wynaut is not poisoned. Turn 2 Aggron uses Obstruct. Wynaut uses Bullet Punch. Bullet Punch deals no damage and Wynaut does not have its Defense lowered. Turn 3 Aggron uses Spiky Shield. Wynaut uses Bullet Punch. Bullet Punch deals no damage and Wynaut remains at full health. - We verify that the Wynaut is not poisoned. We verify that the Wynaut has not had its Defense lowered. We verify that the Wynaut is at full health.

    • testShouldIncreasePowerOfPunchingMovesByTenPercent

      public static CompletableFuture<TestResult> testShouldIncreasePowerOfPunchingMovesByTenPercent(BattleTestHelper helper)
      A Punching Glove held by a Pokémon increases the power of their punching moves by 10%.

      In this double battle test, a Wynaut that knows Bullet Punch is on a team with another Wynaut that is holding a Punching Glove and that knows the move Bullet Punch. They are against two Miltank that both know Sleep Talk. - Turn 1 Wynaut 1 uses Bullet Punch on Miltank 1. Wynaut 2 uses Bullet Punch on Miltank 2. Both Miltank use Sleep Talk. - We verify that the overridden base power of Punching Glove Bullet Punch is 10% more than the normal base power Bullet Punch. We verify that the damage dealt by the Punching Glove Bullet Punch is 10% more than the itemless Bullet Punch.

    • testShouldStackWithIronFist

      public static CompletableFuture<TestResult> testShouldStackWithIronFist(BattleTestHelper helper)
      The power boost from a Punching Glove stacks with the power boost from Iron Fist.

      In this double battle test, a Wynaut that knows Bullet Punch is on a team with another Wynaut with the Iron Fist ability, that is holding a Punching Glove, and that knows the move Bullet Punch. They are against two Miltank that both know Sleep Talk. - Turn 1 Wynaut 1 uses Bullet Punch on Miltank 1. Wynaut 2 uses Bullet Punch on Miltank 2. Both Miltank use Sleep Talk. - We verify that the overridden base power of the Bullet Punch boosted by Iron Fist and Punching GLove is 10% and 20% more (32% more) than the normal base power Bullet Punch. We verify that the damage dealt by the Bullet Punch boosted by Iron Fist and Punching GLove is 10% more than the itemless Bullet Punch.

    • testShouldNotMakeMovesStayNoContactIfPunchingGloveIsStolen

      public static CompletableFuture<TestResult> testShouldNotMakeMovesStayNoContactIfPunchingGloveIsStolen(BattleTestHelper helper)
      If a Pokémon holds a Punching Glove and then loses it, using the same punching attack again should make contact.

      In this test, a Riolu that is holding a Punching Glove and that knows the move Bullet Punch faces off against a Electrike that has the Static ability and that knows Switcheroo and Sleep Talk. - Turn 1 Riolu uses Bullet Punch. Electrike uses Switcheroo, passing the Punching Glove from Riolu to Electrike. Turn 2 Riolu uses Bullet Punch. Riolu is poisoned by Grafaiai's Poison Touch. Electrike uses Sleep Talk. - We verify that the Riolu does not have a Punching Glove after turn one. We verify that the Riolu is paralyzed after turn 2.