Class RockyHelmetTests

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

public class RockyHelmetTests extends Object
Tests for the Rocky Helmet
  • Constructor Details

    • RockyHelmetTests

      public RockyHelmetTests()
  • Method Details

    • testRockyHelmetDamage

      public static CompletableFuture<TestResult> testRockyHelmetDamage(BattleTestHelper helper)
    • testOccursAfterDrain

      public static CompletableFuture<TestResult> testOccursAfterDrain(BattleTestHelper helper)
    • testRockyHelmetDamageTriggersOnPokemonBehindSub

      public static CompletableFuture<TestResult> testRockyHelmetDamageTriggersOnPokemonBehindSub(BattleTestHelper helper)
    • testRockyHelmetMultiStrikeMove

      public static CompletableFuture<TestResult> testRockyHelmetMultiStrikeMove(BattleTestHelper helper)
      Each individual strike from a multistrike move that makes contact will activate the Rocky Helmet.

      In this test, a Haxorus that knows the move Dual Chop faces a Regirock that holds a Rocky Helmet and knows the move Sleep Talk.

           Turn 1
           The Haxorus uses Dual Chop on the Regirock.
           The Regirock uses Sleep Talk.
           -
           We verify that the Haxorus took 1/3 of its HP in damage.
       
    • testRockyHelmetDoesNotHurtTargetOfAttack

      public static CompletableFuture<TestResult> testRockyHelmetDoesNotHurtTargetOfAttack(BattleTestHelper helper)
      A Rocky Helmet should not hurt the target of an attack made by the holder of the Rocky Helmet.

      In this test, a Haxorus that holds a Rocky Helmet knows the move Dual Chop faces a Regirock that knows the move Sleep Talk.

           Turn 1
           The Haxorus uses Dual Chop on the Regirock.
           The Regirock uses Sleep Talk.
           -
           We verify that the Haxorus took 1/3 of its HP in damage.
       
    • testRockyHelmetDoesNotHurtTargetOfAttackWithRecoil

      public static CompletableFuture<TestResult> testRockyHelmetDoesNotHurtTargetOfAttackWithRecoil(BattleTestHelper helper)
      A Rocky Helmet should not hurt the target of an attack made by the holder of the Rocky Helmet even if the attacker used a move that deals recoil damage to the attacker.

      In this test, two Haxorus that know the move Double-Edge face two Regirocks that know the move Sleep Talk. One Haxorus holds a Rocky Helmet.

           Turn 1
           The Haxorus uses Dual Chop on the Regirock.
           The Regirock uses Sleep Talk.
           -
           We verify that the Haxorus took 1/3 of its HP in damage.
       
    • testRockyHelmetDoesNotTriggerRecoilOfCurrentAttack

      public static CompletableFuture<TestResult> testRockyHelmetDoesNotTriggerRecoilOfCurrentAttack(BattleTestHelper helper)
      A Rocky Helmet should not trigger the activation of recoil damage on the holder of the Rocky Helmet when the holder of the Rocky Helmet is using a move that deals recoil damage.

      In this test, a Haxorus that holds a Rocky Helmet and knows the move Double-Edge faces an Annihilape that know the move Submission.

           Turn 1
           The Haxorus uses Double-Edge on the Annihilape. The attack has no effect.
           The Annihilape uses Submission.
           -
           We verify that the Annihilape did not take any damage.