Class StatEnhancingItemsTests
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture
<TestResult> A Chansey will not receive Lucky Punch's boost if the Chansey is transformed into a different Pokémon.static CompletableFuture
<TestResult> If held by a Clamperl, a Deep Sea Scale doubles its Special Defense.static CompletableFuture
<TestResult> If held by Clamperl, a Deep Sea Tooth doubles its Special Attack.static CompletableFuture
<TestResult> An Eviolite does not affect Pikachu, Meowth, or Eevee while they have the Gigantamax Factor, as they are hardcoded not to evolve unless the Gigantamax Factor is removed via Max Soup.static CompletableFuture
<TestResult> From Bulbapedia, "If held by a transformed - not illusioned - Pokémon, the [Eviolite's] boost is based on its original species, not the species it is transformed into."static CompletableFuture
<TestResult> If held by a Farfetch'd or Sirfetch'd, a Leek increases its critical hit ratio by two stages.static CompletableFuture
<TestResult> If held by a Pikachu, the Light Ball doubles both its Attack and Special Attack.static CompletableFuture
<TestResult> If held by a Chansey, or a Pokémon transformed into one, increases its critical hit ratio by two stages.static CompletableFuture
<TestResult> If held by a Chansey, or a Pokémon transformed into one, increases its critical hit ratio by two stages.static CompletableFuture
<TestResult> If held by a Ditto, a Metal Powder doubles its Defense stat.static CompletableFuture
<TestResult> If held by a Ditto, a Metal Powder doubles its Defense stat.static CompletableFuture
<TestResult> If held by a Ditto, a Metal Powder doubles its Defense stat.static CompletableFuture
<TestResult> If held by a Ditto, a Quick Powder doubles its Speed stat.static CompletableFuture
<TestResult> If held by a Ditto, a Quick Powder doubles its Speed stat.static CompletableFuture
<TestResult> If held by a Ditto, a Quick Powder doubles its Speed stat.static CompletableFuture
<TestResult> From Bulbapedia, "If held by a Pokémon that is not fully evolved, raises its Defense and Special Defense by 50%." Omanyte can evolve into Omastar.static CompletableFuture
<TestResult> From Bulbapedia, "[The Eviolite] affects male Combee and Salandit (despite them not being able to evolve while females can)."static CompletableFuture
<TestResult> An Eviolite only gives its boost to Pokémon that can still evolve.static CompletableFuture
<TestResult> If held by Cubone or either form of Marowak, or a Pokémon transformed into one, doubles its Attack stat.static CompletableFuture
<TestResult> If held by Cubone or either form of Marowak, or a Pokémon transformed into one, doubles its Attack stat.
-
Constructor Details
-
StatEnhancingItemsTests
public StatEnhancingItemsTests()
-
-
Method Details
-
testDeepSeaScaleDoublesClamperlsSpDef
public static CompletableFuture<TestResult> testDeepSeaScaleDoublesClamperlsSpDef(BattleTestHelper helper) If held by a Clamperl, a Deep Sea Scale doubles its Special Defense.In this test, two Clamperl are on the same team. One holds a Deep Sea Scale while the other doesn't hold anything. Both know Sleep Talk. They face two Chinchou that both have the Illuminate ability (so that they don't randomly roll their Water Absorb hidden ability) and know the move Bubble Beam.
Turn 1 The Chinchou 1 uses Bubble Beam on Clamperl 1. The Chinchou 2 uses Bubble Beam on Clamperl 2. The Clamperl 1 uses Sleep Talk. The Clamperl 2 uses Sleep Talk. - We verify, before any attacks occur, that the Clamperl with a Deep Sea Scale has twice the Special Defense of the Clamperl without a Deep Sea Scale. We verify that the Clamperl with the Deep Sea Scale takes less damage than the Clamperl without one.
-
testDeepSeaToothDoublesClamperlsSpAtk
public static CompletableFuture<TestResult> testDeepSeaToothDoublesClamperlsSpAtk(BattleTestHelper helper) If held by Clamperl, a Deep Sea Tooth doubles its Special Attack.In this test, two Clamperl are on the same team. One holds a Deep Sea Tooth while the other doesn't hold anything. Both know Water Gun. They face two Chinchou that both have the Illuminate ability (so that they don't randomly roll their Water Absorb hidden ability) and know the move Sleep Talk.
Turn 1 The Clamperl 1 uses Water Gun on Chinchou 1. The Clamperl 2 uses Water Gun on Chinchou 2. The Chinchou 1 uses Sleep Talk. The Chinchou 2 uses Sleep Talk. - We verify, before any attacks occur, that the Clamperl with a Deep Sea Tooth has twice the Special Attack of the Clamperl without a Deep Sea Tooth. We verify that the Chinchou 1, that takes damage from the Clamperl with the Deep Sea Tooth, takes more damage than the Chinchou 2 did.
-
testShouldMultiplyTheDefensesOfPokemonThatCanEvolve
public static CompletableFuture<TestResult> testShouldMultiplyTheDefensesOfPokemonThatCanEvolve(BattleTestHelper helper) From Bulbapedia, "If held by a Pokémon that is not fully evolved, raises its Defense and Special Defense by 50%." Omanyte can evolve into Omastar. -
testShouldNotMultiplyTheDefensesOfPokemonThatCannotEvolve
public static CompletableFuture<TestResult> testShouldNotMultiplyTheDefensesOfPokemonThatCannotEvolve(BattleTestHelper helper) An Eviolite only gives its boost to Pokémon that can still evolve. Omastar is the last evolution of an Omanyte, so it should not be able to receive the buff. -
testShouldMultiplyTheDefensesOfPokemonThatCannotEvolveDueToGender
public static CompletableFuture<TestResult> testShouldMultiplyTheDefensesOfPokemonThatCannotEvolveDueToGender(BattleTestHelper helper) From Bulbapedia, "[The Eviolite] affects male Combee and Salandit (despite them not being able to evolve while females can)." -
testEvioliteShouldNotBoostBasedOnTransformedSpecies
public static CompletableFuture<TestResult> testEvioliteShouldNotBoostBasedOnTransformedSpecies(BattleTestHelper helper) From Bulbapedia, "If held by a transformed - not illusioned - Pokémon, the [Eviolite's] boost is based on its original species, not the species it is transformed into." -
testEvioliteDoesNotWorkWithGMaxFactor
public static CompletableFuture<TestResult> testEvioliteDoesNotWorkWithGMaxFactor(BattleTestHelper helper) An Eviolite does not affect Pikachu, Meowth, or Eevee while they have the Gigantamax Factor, as they are hardcoded not to evolve unless the Gigantamax Factor is removed via Max Soup.In this Double Battle test, two Meowths with the Gigantamax Factor that know the move Sleep Talk are on a team that faces two Houndooms that know the move Ember. The second Meowth holds an Eviolite.
Turn 1 The first Houndoom uses Ember on the Meowth without an Eviolite. The second Houndoom uses Ember on the Meowth with an Eviolite. The first Meowth uses Sleep Talk. The second Meowth uses Sleep Talk. - We verify that the Meowths have the same amount of HP.
-
testLeekIncreasesCriticalHitRatioByTwoStages
public static CompletableFuture<TestResult> testLeekIncreasesCriticalHitRatioByTwoStages(BattleTestHelper helper) If held by a Farfetch'd or Sirfetch'd, a Leek increases its critical hit ratio by two stages. (As of Gen 6, 3 stages or more guarantees a critical hit.)In this test, a Farfetch'd that is holding a Leek, and that knows the move Air Cutter (+1 critical hit ratio) faces a Bastiodon that knows the move Sleep Talk.
Turn 1 The Farfetch'd uses Air Cutter. A critical hit occurs. The Bastiodon uses Sleep Talk. Turn 2 The Farfetch'd uses Air Cutter. A critical hit occurs. The Bastiodon uses Sleep Talk. Turn 3 The Farfetch'd uses Air Cutter. A critical hit occurs. The Bastiodon uses Sleep Talk. Turn 4 The Farfetch'd uses Air Cutter. A critical hit occurs. The Bastiodon uses Sleep Talk. Turn 5 The Farfetch'd uses Air Cutter. A critical hit occurs. The Bastiodon uses Sleep Talk. Turn 6 The Farfetch'd uses Air Cutter. A critical hit occurs. The Bastiodon uses Sleep Talk. - We verify before any attacks happen that the Farfetch'd has a critical hit stage of 2. After every turn, we verify that the Farfetch'd hit a critical hit. After every turn, we verify that the Farfetch'd still has a critical hit stage of 2.
-
testLightBallDoublesPikachusAtkAndSpAtk
public static CompletableFuture<TestResult> testLightBallDoublesPikachusAtkAndSpAtk(BattleTestHelper helper) If held by a Pikachu, the Light Ball doubles both its Attack and Special Attack.In this test, two Pikachu are on the same team. One holds a Light Ball while the other doesn't hold anything. Both have the Static ability to prevent a Pikachu's hidden ability, Lightning Rod, from increasing their Special Attacks. Both know Nuzzle and Thunder Shock. They face two Lombre that both know the move Sleep Talk.
Turn 1 The Pikachu 1 uses Nuzzle on Lombre 1. The Pikachu 2 uses Nuzzle on Lombre 2. The Lombre 1 uses Sleep Talk. The Lombre 2 uses Sleep Talk. Turn 2 The Pikachu 1 uses Thunder Shock on Lombre 1. The Pikachu 2 uses Thunder Shock on Lombre 2. The Lombre 1 uses Sleep Talk. The Lombre 2 uses Sleep Talk. - Before a turn happens: We verify that the Pikachu with a Light Ball has double the Attack of the Pikachu without an item. We verify that the Pikachu with a Light Ball has double the Special Attack of the Pikachu without an item. After turn 1: We verify that, using Nuzzle, the Pikachu with a Light Ball does more damage than the Pikachu without an item. After turn 2: We verify that, using Thunder Shock, the Pikachu with a Light Ball does more damage than the Pikachu without an item.
-
testLuckyPunchIncreasesCriticalHitRatioByTwoStages
public static CompletableFuture<TestResult> testLuckyPunchIncreasesCriticalHitRatioByTwoStages(BattleTestHelper helper) If held by a Chansey, or a Pokémon transformed into one, increases its critical hit ratio by two stages. In Gold, Silver, and Crystal, being transformed does not grant this benefit.In this test, a Chansey that holds a Lucky Punch and knows the move Pound faces a Bastiodon that knows the move Sleep Talk.
Artificially give Chansey the Pumped status which increases its critical hit ratio. Turn 1 The Chansey uses Pound. A critical hit occurs. The Bastiodon uses Sleep Talk. Turn 2 The Chansey uses Pound. A critical hit occurs. The Bastiodon uses Sleep Talk. Turn 3 The Chansey uses Pound. A critical hit occurs. The Bastiodon uses Sleep Talk. Turn 4 The Chansey uses Pound. A critical hit occurs. The Bastiodon uses Sleep Talk. Turn 5 The Chansey uses Pound. A critical hit occurs. The Bastiodon uses Sleep Talk. Turn 6 The Chansey uses Pound. A critical hit occurs. The Bastiodon uses Sleep Talk. - We verify before any attacks happen that the Chansey has a critical hit stage of 2. After every turn, we verify that the Chansey hit a critical hit.
-
testLuckyPunchWorksWithPokemonTransformedIntoChansey
public static CompletableFuture<TestResult> testLuckyPunchWorksWithPokemonTransformedIntoChansey(BattleTestHelper helper) If held by a Chansey, or a Pokémon transformed into one, increases its critical hit ratio by two stages.In this test, a Chansey that knows the move Stored Power faces a Ditto with the Imposter ability that holds a Lucky Punch and knows the move Stored Power.
Artificially give the Ditto the Pumped status which increases its critical hit ratio. Turn 1 The Ditto uses Stored Power. A critical hit occurs. The Chansey uses Stored Power. Turn 2 The Ditto uses Stored Power. A critical hit occurs. The Chansey uses Stored Power. Turn 3 The Ditto uses Stored Power. A critical hit occurs. The Chansey uses Stored Power. Turn 4 The Ditto uses Stored Power. A critical hit occurs. The Chansey uses Stored Power. Turn 5 The Ditto uses Stored Power. A critical hit occurs. The Chansey uses Stored Power. Turn 6 The Ditto uses Stored Power. A critical hit occurs. The Chansey uses Stored Power. - Before the first turn, we verify that the Ditto is transformed. After every turn, we verify that the Ditto hit a critical hit.
-
testChanseysDoNotReceiveLuckyPunchBoostWhenTransformed
public static CompletableFuture<TestResult> testChanseysDoNotReceiveLuckyPunchBoostWhenTransformed(BattleTestHelper helper) A Chansey will not receive Lucky Punch's boost if the Chansey is transformed into a different Pokémon.In this test, a Chansey that holds a Lucky Punch and knows the moves Transform and Pound faces a Nacli that knows the move Recover.
Artificially give Chansey the Pumped status which increases its critical hit ratio. Turn 1 The Chansey uses Pound. The Nacli uses Recover. Turn 2 The Chansey uses Pound. The Nacli uses Recover. Turn 3 The Chansey uses Pound. The Nacli uses Recover. Turn 4 The Chansey uses Pound. The Nacli uses Recover. Turn 5 The Chansey uses Pound. The Nacli uses Recover. Turn 6 The Chansey uses Pound. The Nacli uses Recover. Turn 7 The Chansey uses Pound. The Nacli uses Recover. - Before the first turn, we verify that the Chansey is transformed into a Nacli. After every turn, we check if the Chansey hit a critical hit. The test fails if every attack lands a critical hit.
-
testMetalPowderDoublesDittosDefense
public static CompletableFuture<TestResult> testMetalPowderDoublesDittosDefense(BattleTestHelper helper) If held by a Ditto, a Metal Powder doubles its Defense stat.In this test, two Ditto are on the same team. One holds a Metal Powder while the other doesn't hold anything. Both know Sleep Talk and have the Limber ability. They face two Chinchou that both know the move Spark.
Turn 1 The Chinchou 1 uses Bubble Beam on Ditto 1. The Chinchou 2 uses Bubble Beam on Ditto 2. The Ditto 1 uses Sleep Talk. The Ditto 2 uses Sleep Talk. - We verify that the Ditto with a Metal Powder has twice the Defense of the Ditto without a Metal Powder. We verify that the Ditto with the Metal Powder takes less damage than the Ditto without one does.
-
testMetalPowderDoesNotDoubleDefenseWhenDittoIsTransformed
public static CompletableFuture<TestResult> testMetalPowderDoesNotDoubleDefenseWhenDittoIsTransformed(BattleTestHelper helper) If held by a Ditto, a Metal Powder doubles its Defense stat. It does not work when Ditto is transformed.In this test, two Ditto are on the same team. One holds a Metal Powder while the other doesn't hold anything. Both know Transform and have the Limber ability. They face two Chinchou that both know the move Spark.
Turn 1 The Chinchou 1 uses Spark on Ditto 1. The Chinchou 2 uses Spark on Ditto 2. The Ditto 1 transforms into Chinchou 1. The Ditto 2 transforms into Chinchou 2. - We verify that both Dittos transform. We verify that both Dittos transform into Chinchous. We verify that the transformed Ditto with a Metal Powder has the same Defense as the transformed Ditto without a Metal Powder.
-
testMetalPowderDoesNotDoubleDefenseWhenImposterDittoIsTransformed
public static CompletableFuture<TestResult> testMetalPowderDoesNotDoubleDefenseWhenImposterDittoIsTransformed(BattleTestHelper helper) If held by a Ditto, a Metal Powder doubles its Defense stat. It does not work when Ditto is transformed.In this test, two Ditto are on the same team. One holds a Metal Powder while the other doesn't hold anything. Both know Spark and have the Imposter ability. They face two Chinchous that both have the Volt Absorb ability and know the move Spark.
Turn 0 The Ditto 1 transforms into Chinchou 1. The Ditto 2 transforms into Chinchou 2. Turn 1 The Ditto 1 uses Spark on the Chinchou 1. The Ditto 2 uses Spark on the Chinchou 2. The Chinchou 1 uses Spark on the Chinchou 1. The Chinchou 2 uses Spark on the Chinchou 2. - After turn 0 and before turn 1: We verify that both Dittos transform. We verify that both Dittos transform into Chinchous. After turn 1: We verify that the transformed Ditto with a Metal Powder has the same Defense as the transformed Ditto without a Metal Powder.
-
testQuickPowderDoublesDittosSpeed
public static CompletableFuture<TestResult> testQuickPowderDoublesDittosSpeed(BattleTestHelper helper) If held by a Ditto, a Quick Powder doubles its Speed stat.In this test, two Ditto are on the same team. One holds a Quick Powder while the other doesn't hold anything. Both know Spore. They face a Pachirisu that knows Spark and a Chinchou that knows Bubble Beam.
Turn 1 The Ditto 1 uses Spore on Pachirisu. The Pachirisu is asleep and can't attack. The Chinchou uses Bubble Beam on Ditto 2. The Ditto 2 uses Spore on Chinchou. - We verify that the Ditto with the Quick Powder has double the Speed stat the Ditto without one does. We verify that the Ditto with the Quick Powder (1) does not take damage from the Pachirisu. We verify that the Ditto without the Quick Powder does take damage from the Chinchou.
-
testQuickPowderDoesNotDoubleSpeedWhenDittoIsTransformed
public static CompletableFuture<TestResult> testQuickPowderDoesNotDoubleSpeedWhenDittoIsTransformed(BattleTestHelper helper) If held by a Ditto, a Quick Powder doubles its Speed stat. It does not work when Ditto is transformed.In this test, two Ditto are on the same team. One holds a Quick Powder while the other doesn't hold anything. Both know Transform and have the Limber ability. They face a Pachirisu that knows Spark and a Chinchou that knows Bubble Beam.
Turn 0 The Ditto 1 transforms into the Pachirisu. The Ditto 2 transforms into the Chinchou. - We verify that both Dittos transform. We verify that both Dittos transform into Smeargles. We verify that the transformed Ditto with the Quick Powder has the same Speed as the transformed Ditto without a Quick Powder.
-
testQuickPowderDoesNotDoubleSpeedWhenImposterDittoIsTransformed
public static CompletableFuture<TestResult> testQuickPowderDoesNotDoubleSpeedWhenImposterDittoIsTransformed(BattleTestHelper helper) If held by a Ditto, a Quick Powder doubles its Speed stat. It does not work when Ditto is transformed.In this test, two Ditto are on the same team. One holds a Quick Powder while the other doesn't hold anything. Both know Spore and have the Imposter ability. They face a Pachirisu that knows Spark and a Chinchou that knows Bubble Beam.
Turn 0 The Ditto 1 transforms into the Pachirisu. The Ditto 2 transforms into the Chinchou. Turn 1 The Ditto 1 uses Spore on the Smeargle 1. The Ditto 2 uses Spore on the Smeargle 2. The Smeargle 1 uses Spore on the Smeargle 1. The Smeargle 2 uses Spore on the Smeargle 2. - After turn 0 and before turn 1: We verify that both Dittos transform. We verify that both Dittos transform into Smeargles. After turn 1: We verify that the transformed Ditto with the Quick Powder has the same Speed as the transformed Ditto without a Quick Powder.
-
testThickClubDoublesAtk
If held by Cubone or either form of Marowak, or a Pokémon transformed into one, doubles its Attack stat. In Gold, Silver, and Crystal, being transformed does not apply this benefit.In this test, two Marowak are on the same team. One holds a Thick Club while the other doesn't hold anything. Both know Headbutt. They face two Lombre that both know the move Sleep Talk.
Turn 1 The Lombre 1 uses Sleep Talk. The Lombre 2 uses Sleep Talk. The Marowak 1 uses Headbutt on Lombre 1. The Marowak 2 uses Headbutt on Lombre 2. - Before a turn happens: We verify that the Marowak with the Thick Club has double the Attack of the Marowak without an item. After turn 1: We verify that, using Headbutt, the Marowak with the Thick Club did more damage than the Marowak without an item.
-
testThickClubWorksWithPokemonTransformedIntoCuboneOrDitto
public static CompletableFuture<TestResult> testThickClubWorksWithPokemonTransformedIntoCuboneOrDitto(BattleTestHelper helper) If held by Cubone or either form of Marowak, or a Pokémon transformed into one, doubles its Attack stat.In this test, two Ditto are on the same team. One holds a Thick Club while the other doesn't hold anything. Both have the Imposter ability and know Stomping Tantrum. They face two (Kantonian) Marowak that both know the move Stomping Tantrum.
Turn 0 The Ditto 1 transforms into Marowak 1. The Ditto 2 transforms into Marowak 2. Turn 1 The Marowak 1 uses Sleep Talk. The Marowak 2 uses Sleep Talk. The Ditto 1 uses Stomping Tantrum on Marowak 1. The Ditto 2 uses Stomping Tantrum on Marowak 2. - Before the first turn, we verify that the Ditto is transformed. After turn 1: We verify that the Ditto with the Thick Club has double the Attack of the Ditto without an item. We verify that, using Stomping Tantrum, the Ditto with the Thick Club did more damage than the Ditto without an item.
-