Class RaiseStatItemTests
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture
<TestResult> If the holder is hit by a Water-type damaging move, it consumes the Absorb Bulb and its Special Attack is increased by one stage.static CompletableFuture
<TestResult> If the holder is hit by an Electric-type damaging move, it consumes the Cell Battery and its Attack is increased by one stage.static CompletableFuture
<TestResult> If the holder is hit by an Electric-type damaging move, it consumes the Cell Battery and its Attack is increased by one stage, even when the attack that hits it deals 0 damage.static CompletableFuture
<TestResult> It does not activate if the holder already has +6 Attack stat stages (unless its Ability is Contrary, in which case it will not activate if the holder has -6 Attack stat stages).static CompletableFuture
<TestResult> If the holder is hit by an Electric-type damaging move, it consumes the Cell Battery and its Attack is increased by one stage.static CompletableFuture
<TestResult> It does not activate if the holder is protected from or unaffected by the Electric-type move (e.g.static CompletableFuture
<TestResult> It does not activate if the holder already has +6 Attack stat stages.static CompletableFuture
<TestResult> It does not activate if the holder already has +6 Attack stat stages (unless its Ability is Contrary, in which case it will not activate if the holder has -6 Attack stat stages).static CompletableFuture
<TestResult> If multiple Pokémon each holding a Cell Battery are hit by an Electric-type move at once, each hit Pokémon will consume its Cell Battery before Symbiosis transfers any item (including Cell Batteries).static CompletableFuture
<TestResult> If the holder is hit by a Water-type damaging move, it consumes the Luminous Moss and its Special Defense is increased by one stage.static CompletableFuture
<TestResult> If the holder is hit by an Ice-type damaging move, it consumes the Snowball and its Attack is increased by one stage.
-
Constructor Details
-
RaiseStatItemTests
public RaiseStatItemTests()
-
-
Method Details
-
testCellBatteryRaisesAttackAndIsConsumedWhenHitByElectricTypeAttacks
public static CompletableFuture<TestResult> testCellBatteryRaisesAttackAndIsConsumedWhenHitByElectricTypeAttacks(BattleTestHelper helper) If the holder is hit by an Electric-type damaging move, it consumes the Cell Battery and its Attack is increased by one stage.In this test, a Treecko that holds a Cell Battery and knows the move Sleep Talk faces an Electrike that knows the move Shock Wave.
Turn 1 The Treecko uses Sleep Talk. The Electrike uses Shock Wave. The Treecko's Cell Battery activates. - We verify that the Treecko was damaged. We verify that the Treecko no longer has a held item. We verify that the Treecko's Attack was raised by one stage.
-
testDoesNotActivateWhenStatIsMaximized
public static CompletableFuture<TestResult> testDoesNotActivateWhenStatIsMaximized(BattleTestHelper helper) It does not activate if the holder already has +6 Attack stat stages.In this test, a Linoone that holds a Cell Battery and knows the move Belly Drum faces an Electrike that knows the move Shock Wave.
Turn 1 The Linoone uses Belly Drum. The Electrike uses Shock Wave. The Linoone's Cell Battery activates. - We verify that the Linoone was damaged. We verify that the Linoone still has a held item. We verify that the Linoone still has +6 Attack stat stages.
-
testDoesActivateWithTheContraryAbilityWhenStatIsMaximized
public static CompletableFuture<TestResult> testDoesActivateWithTheContraryAbilityWhenStatIsMaximized(BattleTestHelper helper) It does not activate if the holder already has +6 Attack stat stages (unless its Ability is Contrary, in which case it will not activate if the holder has -6 Attack stat stages).In this test, a Linoone that holds a Cell Battery and knows the moves Belly Drum and Sleep Talk faces a Malamar with the Contrary ability that knows the moves Entrainment and Thunderbolt.
Turn 1 The Linoone uses Belly Drum. The Linoone's Attack is raised by six stages. The Malamar uses Entrainment. The Linoone's ability becomes Contrary. Turn 2 The Linoone uses Sleep Talk. The Malamar uses Thunderbolt. The Linoone's Cell Battery activates and lowers its Attack by one stage. - We verify that the Linoone was damaged. We verify that the Linoone still has a held item. We verify that the Linoone still has +6 Attack stat stages.
-
testDoesNotActivateWithTheContraryAbilityWhenStatIsMinimized
public static CompletableFuture<TestResult> testDoesNotActivateWithTheContraryAbilityWhenStatIsMinimized(BattleTestHelper helper) It does not activate if the holder already has +6 Attack stat stages (unless its Ability is Contrary, in which case it will not activate if the holder has -6 Attack stat stages).In this test, a Snorlax that holds a Cell Battery and knows the moves Belly Drum and Sleep Talk faces a Malamar with the Contrary ability that knows the moves Entrainment and Thunderbolt.
Turn 1 The Malamar uses Entrainment. The Snorlax's ability becomes Contrary. The Snorlax uses Belly Drum. The Snorlax's Attack is lowered by six stages. Turn 2 The Malamar uses Thunderbolt. The Snorlax's Cell Battery does not activate. The Snorlax uses Sleep Talk. - We verify that the Snorlax was damaged. We verify that the Snorlax still has a held item. We verify that the Snorlax still has -6 Attack stat stages.
-
testDoesNotActivateIfUserIsUnaffectedByTheType
public static CompletableFuture<TestResult> testDoesNotActivateIfUserIsUnaffectedByTheType(BattleTestHelper helper) It does not activate if the holder is protected from or unaffected by the Electric-type move (e.g. due to Motor Drive or being Ground-type).In this test, a Trapinch that holds a Cell Battery and knows the move Sleep Talk faces an Electrike that knows the move Shock Wave.
Turn 1 The Electrike uses Shock Wave. The Trapinch's Cell Battery does not activate. The Trapinch uses Sleep Talk. - We verify that the Trapinch was damaged. We verify that the Trapinch has a held item. We verify that the Trapinch's Attack has not been raised.
-
testIsConsumedBeforeItCanBePassedBySymbiosis
public static CompletableFuture<TestResult> testIsConsumedBeforeItCanBePassedBySymbiosis(BattleTestHelper helper) If multiple Pokémon each holding a Cell Battery are hit by an Electric-type move at once, each hit Pokémon will consume its Cell Battery before Symbiosis transfers any item (including Cell Batteries).In this test, a Treecko that holds a Cell Battery and knows the move Sleep Talk is on a team with an Oranguru with the Symbiosis ability that holds a Cell Battery and knows the move Sleep Talk. They face an Electrike that knows the move Discharge.
Turn 1 The Treecko uses Sleep Talk. The Electrike uses Discharge. The Treecko's Cell Battery activates. The Oranguru's Cell Battery activates. The Oranguru uses Sleep Talk. - We verify that the Treecko was damaged. We verify that the Oranguru was damaged. We verify that the Treecko no longer has a held item. We verify that the Oranguru no longer has a held item. We verify that the Treecko's Attack was raised by one stage. We verify that the Oranguru's Attack was raised by one stage.
-
testAbsorbBulbRaisesSpecialAttackAndIsConsumedWhenHitByWaterTypeAttacks
public static CompletableFuture<TestResult> testAbsorbBulbRaisesSpecialAttackAndIsConsumedWhenHitByWaterTypeAttacks(BattleTestHelper helper) If the holder is hit by a Water-type damaging move, it consumes the Absorb Bulb and its Special Attack is increased by one stage.In this test, a Treecko that holds an Absorb Bulb and knows the move Sleep Talk faces a Mudkip that knows the move Water Gun.
Turn 1 The Treecko uses Sleep Talk. The Mudkip uses Water Gun. The Treecko's Absorb Bulb activates. - We verify that the Treecko was damaged. We verify that the Treecko no longer has a held item. We verify that the Treecko's Special Attack was raised by one stage.
-
testLuminousMossRaisesSpecialDefenseAndIsConsumedWhenHitByWaterTypeAttacks
public static CompletableFuture<TestResult> testLuminousMossRaisesSpecialDefenseAndIsConsumedWhenHitByWaterTypeAttacks(BattleTestHelper helper) If the holder is hit by a Water-type damaging move, it consumes the Luminous Moss and its Special Defense is increased by one stage.In this test, a Treecko that holds a Luminous Moss and knows the move Sleep Talk faces a Mudkip that knows the move Water Gun.
Turn 1 The Treecko uses Sleep Talk. The Mudkip uses Water Gun. The Treecko's Luminous Moss activates. - We verify that the Treecko was damaged. We verify that the Treecko no longer has a held item. We verify that the Treecko's Special Defense was raised by one stage.
-
testSnowballRaisesAttackAndIsConsumedWhenHitByIceTypeAttacks
public static CompletableFuture<TestResult> testSnowballRaisesAttackAndIsConsumedWhenHitByIceTypeAttacks(BattleTestHelper helper) If the holder is hit by an Ice-type damaging move, it consumes the Snowball and its Attack is increased by one stage.In this test, a Treecko that holds a Snowball and knows the move Sleep Talk faces a Snorunt that knows the move Ice Shard.
Turn 1 The Treecko uses Sleep Talk. The Snorunt uses Ice Shard. The Treecko's Snowball activates. - We verify that the Treecko was damaged. We verify that the Treecko no longer has a held item. We verify that the Treecko's Attack was raised by one stage.
-
testCellBatteryRaisesAttackWhenTakingZeroDamageDueToEnduringAtOneHP
public static CompletableFuture<TestResult> testCellBatteryRaisesAttackWhenTakingZeroDamageDueToEnduringAtOneHP(BattleTestHelper helper) If the holder is hit by an Electric-type damaging move, it consumes the Cell Battery and its Attack is increased by one stage, even when the attack that hits it deals 0 damage.In this test, a Meditite that holds a Cell Battery and knows the moves Sleep Talk and Endure faces a Zeraora that knows the moves False Swipe and Thunder Punch.
Turn 1 The Meditite uses Sleep Talk. The Zeraora uses False Swipe. Turn 2 The Meditite uses Endure. The Zeraora uses Thunder Punch. The Meditite takes 0 damage, but its Cell Battery activates. - After turn 1: We verify that the Meditite has only 1 HP remaining. After turn 2: We verify that the Meditite has only 1 HP remaining. We verify that the Meditite no longer has a held item. We verify that the Meditite's Attack was raised by one stage.
-
testDoesNotActivateIfHolderUsesProtectMove
public static CompletableFuture<TestResult> testDoesNotActivateIfHolderUsesProtectMove(BattleTestHelper helper) If the holder is hit by an Electric-type damaging move, it consumes the Cell Battery and its Attack is increased by one stage.In this test, a Meditite that holds a Cell Battery and knows the move Detect faces a Zeraora that knows the move Thunder Punch.
Turn 1 The Meditite uses Detect. The Zeraora uses Thunder Punch. - We verify that the Meditite has a held item. We verify that the Meditite's Attack has not been raised.
-