Class ScopeLensTests
java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.item.ScopeLensTests
Tests for the Scope Lens
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture
<TestResult> A Scope Lens raises the critical hit ratio of the holder by one stage.
-
Constructor Details
-
ScopeLensTests
public ScopeLensTests()
-
-
Method Details
-
testScopeLensIncreasesCriticalHitRatioByOneStage
public static CompletableFuture<TestResult> testScopeLensIncreasesCriticalHitRatioByOneStage(BattleTestHelper helper) A Scope Lens raises the critical hit ratio of the holder by one stage.In this test, a Chansey that holds a Scope Lens and knows the move Pound faces a Bastiodon that knows the move Sleep Talk.
Before turn 1 Artificially give the Chansey the Pumped status which increases its critical hit ratio by two stages. 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 1, from its Scope Lens. After the first turn, we verify that the Chansey has a critical hit stage equal to 3. After every turn, we verify that the Chansey hit a critical hit.
-