Class MirrorHerbTests
java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.item.MirrorHerbTests
Tests for the Mirror Herb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture
<TestResult> If multiple stats of the opponent are increased at once (for instance by using Dragon Dance), all the stat increases are copied.static CompletableFuture
<TestResult> Just after an opponent has a stat increase, the holder consumes the Mirror Herb and gets the same stat increase.static CompletableFuture
<TestResult> Just after an opponent has a stat increase, the holder consumes the Mirror Herb and gets the same stat increase.
-
Constructor Details
-
MirrorHerbTests
public MirrorHerbTests()
-
-
Method Details
-
testMirrorHerbCopiesOpponentsStatIncreases
public static CompletableFuture<TestResult> testMirrorHerbCopiesOpponentsStatIncreases(BattleTestHelper helper) Just after an opponent has a stat increase, the holder consumes the Mirror Herb and gets the same stat increase.In this test, a Poochyena that holds a Mirror Herb and knows the move Sleep Talk faces a Mightyena that knows Nasty Plot.
Turn 1 Mightyena uses Nasty Plot. The Mightyena's Special Attack is raised by two stages. The Poochyena's Mirror Herb activates and raises its Special Attack by two stages. Poochyena uses Sleep Talk. - We verify that the Poochyena doesn't have a held item. We verify that the Poochyena's consumed item is a Mirror Herb. We verify that the Poochyena had its Special Attack raised by two stages.
-
testMirrorHerbDoesNotCopyOpponentsStatDecreases
public static CompletableFuture<TestResult> testMirrorHerbDoesNotCopyOpponentsStatDecreases(BattleTestHelper helper) Just after an opponent has a stat increase, the holder consumes the Mirror Herb and gets the same stat increase.In this test, a Poochyena that holds a Mirror Herb and knows the move Scary Face faces a Mightyena that knows Sleep Talk.
Turn 1 Mightyena uses Sleep Talk. Poochyena uses Scary Face. The Mightyena's Speed is lowered by two stages. The Poochyena's Mirror Herb does not activate. - We verify that the Poochyena has a held item. We verify that the Poochyena has not consumed an item. We verify that the Poochyena's Speed has not been raised or lowered.
-
testMirrorHerbCopiesEveryStatIncrease
public static CompletableFuture<TestResult> testMirrorHerbCopiesEveryStatIncrease(BattleTestHelper helper) If multiple stats of the opponent are increased at once (for instance by using Dragon Dance), all the stat increases are copied.In this test, a Poochyena that holds a Mirror Herb and knows the move Sleep Talk faces a Shelgon that knows Dragon Dance.
Turn 1 Shelgon uses Dragon Dance. The Shelgon's Attack and Speed are raised by one stage. The Poochyena's Mirror Herb activates and raises both its Attack and Speed by one stage. Poochyena uses Sleep Talk. - We verify that the Poochyena doesn't have a held item. We verify that the Poochyena's consumed item is a Mirror Herb. We verify that the Poochyena had its Attack raised by one stage. We verify that the Poochyena had its Speed raised by one stage.
-