Class RazorWindTests
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture
<TestResult> If Razor Wind is not fully executed, PP will not be deducted, and it will not count as the last move used.static CompletableFuture
<TestResult> If a Power Herb is held by the user, Razor Wind can be executed in one turn.static CompletableFuture
<TestResult> Razor Wind does nothing on the turn it is selected, other than saying "[Pokémon] made a whirlwind!".static CompletableFuture
<TestResult> Razor Wind again has an increased critical-hit ratio.static CompletableFuture
<TestResult> If Razor Wind is disrupted from succeeding due to conditions such as flinching, paralysis, confusion, or sleep, the entire move will now be cancelled rather than simply paused.static CompletableFuture
<TestResult> If Razor Wind is disrupted from succeeding due to conditions such as flinching, paralysis, confusion, or sleep, the entire move will now be cancelled rather than simply paused.
-
Constructor Details
-
RazorWindTests
public RazorWindTests()
-
-
Method Details
-
testRazorWindDealsDamageOnSecondTurn
public static CompletableFuture<TestResult> testRazorWindDealsDamageOnSecondTurn(BattleTestHelper helper) Razor Wind does nothing on the turn it is selected, other than saying "[Pokémon] made a whirlwind!". On the following turn, Razor Wind inflicts damage, PP is deducted, and it will count as the last move used.In this test, a Fletchling that knows the move Razor Wind faces a Helioptile that knows the move Sleep Talk.
Turn 1 The Fletchling uses Razor Wind. The Fletchling starts charging. The Helioptile uses Sleep Talk. Turn 2 The Fletchling stops charging and attacks the Helioptile with Razor Wind. The Helioptile uses Sleep Talk. - After Turn 1: We verify that the Helioptile has not taken any damage. We verify that the Fletchling hasn't used an PP for Razor Wind. We verify that the Fletchling's last attack wasn't Razor Wind. After Turn 2: We verify that the Helioptile has taken damage. We verify that the Fletchling has one less PP than max for Razor Wind. We verify that the Fletchling's last attack wasn't Razor Wind.
-
testRazorWindCanBeInterrupted
If Razor Wind is not fully executed, PP will not be deducted, and it will not count as the last move used. If the target uses Mirror Move during the turn that the user creates a whirlwind, Mirror Move will copy the move that the user executed immediately before using Razor Wind (or fail if it cannot).In this test, a Fletchling that knows the move Razor Wind faces an Ekans that knows the move Glare and a Swablu that knows Mirror Move.
Turn 1 The Fletchling uses Razor Wind. The Fletchling starts charging. The Ekans uses Glare. The Fletchling becomes paralyzed. The Swablu uses Mirror Move. Turn 2 The Fletchling is paralyzed and can't move. The Ekans uses Glare. The Swablu uses Mirror Move. - After Turn 1: We verify that the Ekans has not taken any damage. We verify that the Swablu has not taken any damage. We verify that the Fletchling has not taken any damage. We verify that the Fletchling hasn't used an PP for Razor Wind. We verify that the Fletchling's last attack wasn't Razor Wind. We verify that the Swablu's Mirror Move failed to copy Razor Wind. After Turn 2: We verify that the Ekans has not taken any damage. We verify that the Swablu has not taken any damage. We verify that the Fletchling has not taken any damage. We verify that the Fletchling hasn't used an PP for Razor Wind. We verify that the Fletchling's last attack wasn't Razor Wind. We verify that the Swablu's attack failed.
-
testRazorWindIsInterruptedBySleep
public static CompletableFuture<TestResult> testRazorWindIsInterruptedBySleep(BattleTestHelper helper) If Razor Wind is disrupted from succeeding due to conditions such as flinching, paralysis, confusion, or sleep, the entire move will now be cancelled rather than simply paused.In this test, an Absol that knows the move Razor Wind faces a Xurkitree that knows the moves Sleep Talk and Hypnosis.
Turn 1 The Xurkitree uses Sleep Talk. The Absol uses Razor Wind. The Absol starts charging. Turn 2 The Xurkitree uses Hypnosis. The Absol falls asleep. The Absol stops charging and attacks the Xurkitree with Razor Wind, but the Absol is asleep. Turn 3 The Xurkitree uses Sleep Talk. The Absol uses Razor Wind. Turn 4 and on The Xurkitree uses Sleep Talk. The Absol uses Razor Wind. - After Turn 1: We verify that the Xurkitree has not taken any damage. We verify that the Absol is not asleep. After Turn 2: We verify that the Xurkitree has not taken any damage. We verify that the Absol is asleep. After Turn 3: We verify that the Xurkitree has not taken any damage. We verify that the Absol is asleep. After Turn 4: The test succeeds when the Absol wakes up and the Xurkitree also hasn't taken any damage.
-
testRazorWindIsInterruptedByFlinch
public static CompletableFuture<TestResult> testRazorWindIsInterruptedByFlinch(BattleTestHelper helper) If Razor Wind is disrupted from succeeding due to conditions such as flinching, paralysis, confusion, or sleep, the entire move will now be cancelled rather than simply paused.In this test, an Absol that knows the move Razor Wind faces a Watchog that knows the moves Sleep Talk and Bite.
Turn 1 The Watchog uses Sleep Talk. The Absol uses Razor Wind. The Absol starts charging. Turn 2 The Watchog uses Bite. The Absol flinches. Turn 3 The Watchog uses Sleep Talk. The Absol uses Razor Wind. The Absol starts charging. Turn 4 The Watchog uses Bite. The Absol flinches. Turn 5 The Watchog uses Sleep Talk. The Absol uses Razor Wind. The Absol starts charging. - After Turn 1: We verify that the Watchog has not taken any damage. After Turn 2: We verify that the Watchog has not taken any damage. After Turn 3: We verify that the Watchog has not taken any damage. After Turn 4: We verify that the Watchog has not taken any damage. After Turn 5: We verify that the Watchog has not taken any damage.
-
testRazorWindHasIncreasedCriticalHitRatio
public static CompletableFuture<TestResult> testRazorWindHasIncreasedCriticalHitRatio(BattleTestHelper helper) Razor Wind again has an increased critical-hit ratio.In this test, a Fletchling that knows the move Razor Wind faces a Helioptile that knows the move Sleep Talk.
Before Turn 1 The Fletchling has its Critical Hit Ratio artificially raised by two. Turn 1 The Fletchling uses Razor Wind. The Fletchling starts charging. The Helioptile uses Sleep Talk. Turn 2 The Fletchling stops charging and attacks the Helioptile with Razor Wind. The Helioptile uses Sleep Talk. - After Turn 1: We verify that the Helioptile has not taken any damage. We verify that the Fletchling's critical-hit ratio is already at 2 stages. After Turn 2: We verify that the Helioptile has taken damage. We verify that the Fletchling's attack was a critical hit.
-
testRazorWindCanUsePowerHerb
If a Power Herb is held by the user, Razor Wind can be executed in one turn.In this test, a Fletchling that knows the move Razor Wind and holds a Power Herb faces a Helioptile that knows the move Sleep Talk.
Turn 1 The Fletchling uses Razor Wind. The Helioptile uses Sleep Talk. - After Turn 1: We verify that the Helioptile has taken damage. We verify that the Fletchling is not holding an item. We verify that the Fletchling's consumed item is a Power Herb.
-