Class RedCardTests

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

public class RedCardTests extends Object
  • Constructor Details

    • RedCardTests

      public RedCardTests()
  • Method Details

    • testRedCardAndDestinyBond

      public static CompletableFuture<TestResult> testRedCardAndDestinyBond(BattleTestHelper helper)
    • testRedCard

      public static CompletableFuture<TestResult> testRedCard(BattleTestHelper helper)
    • testRedCardIgnoresRockyHelmet

      public static CompletableFuture<TestResult> testRedCardIgnoresRockyHelmet(BattleTestHelper helper)
      A Red Card should not activate from indirect damage such as Rocky Helmet.

      In this test, an Aggron that holds a Red Card and knows the move Tackle is on a team with a Wynaut that knows the move Sleep Talk. They face a Gardevoir that holds a Rocky Helmet and also knows the move Sleep Talk along with a Wynaut that knows Sleep Talk. - Turn 1 The Gardevoir uses Sleep Talk. The Aggron uses Tackle on Gardevoir. The Aggron takes damage from the Gardevoir's Rocky Helmet. The Red Card does not activate. The Gardevoir remains on the field. - We verify that the Aggron is still on the field of battle. We verify that the Gardevoir is still on the field of battle. We verify that the Aggron is not at full health. We verify that the Aggron still has a held item.

    • testRedCardIgnoresLeechSeed

      public static CompletableFuture<TestResult> testRedCardIgnoresLeechSeed(BattleTestHelper helper)
      A Red Card should not activate from indirect damage such as Leech Seed.

      In this test, an Aggron that holds a Red Card and knows the move Sleep Talk is on a team with a Wynaut that also knows the move Sleep Talk. They face a Skiploom that knows the move Leech Seed and a Wynaut that knows Sleep Talk. - Turn 1 The Skiploom uses Leech Seed. The Aggron uses Sleep Talk. The Aggron takes damage from Leech Seed. The Red Card does not activate. The Skiploom remains on the field. - We verify that the Aggron is still on the field of battle. We verify that the Skiploom is still on the field of battle. We verify that the Aggron is not at full health. We verify that the Aggron still has a held item.

    • testRedCardIgnoresDamageFromNonVolatileStatuses

      public static CompletableFuture<TestResult> testRedCardIgnoresDamageFromNonVolatileStatuses(BattleTestHelper helper)
      A Red Card should not activate from indirect damage from non-volatile status conditions such as Burn.

      In this test, an Aggron that holds a Red Card and knows the move Sleep Talk is on a team with a Wynaut that also knows the move Sleep Talk. They face a Froslass that knows the move Will-O-Wisp along with a Wynaut that knows Sleep Talk. - Turn 1 The Froslass uses Will-O-Wisp. Aggron obtains the Burn status. The Aggron uses Sleep Talk. The Aggron takes damage from its Burn. The Red Card does not activate. The Froslass remains on the field. - We verify that the Aggron is still on the field of battle. We verify that the Froslass is still on the field of battle. We verify that the Aggron is not at full health. We verify that the Aggron still has a held item.

    • testRedCardIgnoresDamageFromVolatileStatuses

      public static CompletableFuture<TestResult> testRedCardIgnoresDamageFromVolatileStatuses(BattleTestHelper helper)
      A Red Card should not activate from indirect damage from volatile statuses such as Confusion.

      In this test, an Aggron that holds a Red Card and knows the move Sleep Talk is on a team with a Wynaut that also knows the move Sleep Talk. They face a Froslass that knows the move Confuse Ray along with a Wynaut that knows Sleep Talk. - Turn 1 The Froslass uses Confuse Ray. Aggron becomes confused. The Aggron fails to use Sleep Talk and hurts itself in its confusion. The Red Card does not activate. The Froslass remains on the field. - We verify that the Aggron is still on the field of battle. We verify that the Froslass is still on the field of battle. We verify that the Aggron is not at full health. We verify that the Aggron still has a held item.

    • testRedCardIgnoresDamageFromSelfInflictedCurseDamage

      public static CompletableFuture<TestResult> testRedCardIgnoresDamageFromSelfInflictedCurseDamage(BattleTestHelper helper)
      A Red Card should not activate from indirect damage, such as from self-inflicted Curse damage.

      In this test, an Froslass that holds a Red Card and knows the move Curse is on a team with a Wynaut that knows the move Sleep Talk. They face a Aggron that knows the move Sleep Talk along with a Wynaut that knows Sleep Talk. - Turn 1 The Froslass uses Curse. Froslass loses half of its HP and Aggron receives the Curse status. The Red Card does not activate. The Aggron remains on the field. The Aggron uses Sleep Talk. The Aggron takes damage from its curse. - We verify that the Froslass is not at full health. We verify that the Froslass is still on the field of battle. We verify that the Aggron is still on the field of battle. We verify that the Froslass still has a held item.

    • testRedCardIgnoresDamageFromGulpMissileCounterAttack

      public static CompletableFuture<TestResult> testRedCardIgnoresDamageFromGulpMissileCounterAttack(BattleTestHelper helper)
      A Red Card should not activate from indirect damage, such as from Gulp Missile's counter-attack.

      In this test, an Froslass that holds a Red Card and knows the move Headbutt is on a team with a Wynaut that knows the move Sleep Talk. They face a Gulping form Cramorant that knows the move Sleep Talk along with a Wynaut that knows Sleep Talk. - Turn 1 The Cramorant starts the battle in Gulping form, to skip it need to use Surf or Dive to prep Gulp Missile. The Froslass uses Headbutt. Froslass takes damage from Cramorant's Gulp Missile. The Red Card does not activate. The Cramorant remains on the field. The Cramorant uses Sleep Talk. - We verify that the Froslass is not at full health. We verify that the Froslass is still on the field of battle. We verify that the Cramorant is still on the field of battle. We verify that the Froslass still has a held item.

    • testRedCardIgnoresDamageFromAbilitiesThatDoDamageAtTheEndOfATurn

      public static CompletableFuture<TestResult> testRedCardIgnoresDamageFromAbilitiesThatDoDamageAtTheEndOfATurn(BattleTestHelper helper)
      A Red Card should not activate from indirect damage, such as the damage taken from Dry Skin during harsh sunlight.

      In this test, an Paras that holds a Red Card and knows the move Sleep Talk is on a team with a Wynaut that knows the move Sleep Talk. They face a Groudon that knows the move Sleep Talk along with a Wynaut that knows Sleep Talk. - Turn 1 The Groudon enters the battlefield and activates its ability Drough, turning the weather to harsh sunlight. The Groudon uses Sleep Talk. The Paras uses Sleep Talk. Paras takes damage from its Dry Skin ability. The Red Card does not activate. The Groudon remains on the field. - We verify that the Paras is not at full health. We verify that the Paras is still on the field of battle. We verify that the Paras still has a held item.

    • testRedCardIgnoresDamageFromTheOpponentsPainSplit

      public static CompletableFuture<TestResult> testRedCardIgnoresDamageFromTheOpponentsPainSplit(BattleTestHelper helper)
      A Red Card should not activate from indirect damage, such as the damage taken from the move Pain Split.

      In this Single Battle test, a level 1 Misdreavus that knows the move Pain Split is on a team with a Wynaut that knows the move Sleep Talk. They face a Pikachu that is holding a Red Card and knows the move Sleep Talk along with a Magikarp that knows Splash. - Turn 1 The Pikachu uses Sleep Talk. The Misdreavus uses Pain Split. The Pikachu and Misdreavus' current HP are added together and split between them. The Pikachu loses a lot of health. The Misdreavus would gain health if it weren't already at full health. The Pikachu's Red Card does not activate. The Misdreavus remains on the field. - We verify that the Pikachu is not at full health. We verify that the Pikachu is still on the field of battle. We verify that the Misdreavus is still on the field of battle. We verify that the Pikachu still has a held item.

    • testRedCardIgnoresDamageFromTheHoldersPainSplit

      public static CompletableFuture<TestResult> testRedCardIgnoresDamageFromTheHoldersPainSplit(BattleTestHelper helper)
      A Red Card should not activate from indirect damage, such as the damage taken from the move Pain Split.

      In this Single Battle test, a Misdreavus that holds a Red Card and knows the move Pain Split is on a team with a Wynaut that knows the move Sleep Talk. They face a level 1 Pikachu that knows the move Sleep Talk along with a Magikarp that knows Splash. - Turn 1 The Misdreavus uses Pain Split. The Pikachu and Misdreavus' current HP are added together and split between them. The Misdreavus loses a lot of health. The Pikachu would gain health if it weren't already at full health. The Misdreavus' Red Card does not activate. The Pikachu remains on the field. The Pikachu uses Sleep Talk. - We verify that the Misdreavus is not at full health. We verify that the Misdreavus is still on the field of battle. We verify that the Pikachu is still on the field of battle. We verify that the Misdreavus still has a held item.

    • testRedCardIgnoresRecoilDamage

      public static CompletableFuture<TestResult> testRedCardIgnoresRecoilDamage(BattleTestHelper helper)
      A Red Card should not activate from indirect damage, such as recoil damage.

      In this test, an Growlithe that holds a Red Card and knows the move Take Down is on a team with a Wynaut that knows the move Sleep Talk. They face a Gardevoir that knows the move Sleep Talk. - Turn 1 The Gardevoir uses Sleep Talk. The Growlithe uses Take Down on the Gardevoir. The Growlithe takes recoil damage. The Red Card does not activate. The Gardevoir remains on the field. - We verify that the Growlithe is not at full health. We verify that the Growlithe is still on the field of battle. We verify that the Growlithe still has a held item.