Class RoarTests
java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.move.RoarTests
Tests for Roar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<TestResult> testRoar(BattleTestHelper helper) In a Trainer battle, Roar will switch out the target for a random Pokémon on the opponent's team.static CompletableFuture<TestResult> In a Trainer battle, Roar will not select a fainted Pokémon on the opponent's team.
-
Constructor Details
-
RoarTests
public RoarTests()
-
-
Method Details
-
testRoar
In a Trainer battle, Roar will switch out the target for a random Pokémon on the opponent's team.In this test, a Houndstone that knows Roar faces a Tyrunt that knows Charm. The Tyrunt has a Dipplin and a Hydrapple on its team to switch into.
Turn 1 The Tyrunt uses Charm. The Houndstone uses Roar. - After Turn 1 We verify that the Houndstone's Attack was lowered by two stages. We verify that the Tyrunt didn't take any damage. We verify that the Tyrunt is no longer on the battlefield. We verify that the Hydrapple and the Dipplin are not on the field at the same time. We verify that the Hydrapple and the Dipplin are not off the field at the same time. We verify that the Roar's result was recorded as dealing no damage. We verify that the Roar's result was recorded as succeeding. We verify that the Roar's result was recorded with a priority of -6. We verify that the Roar's result was recorded with a base power of 0. -
testRoarSelectsNonFaintedPokemon
public static CompletableFuture<TestResult> testRoarSelectsNonFaintedPokemon(BattleTestHelper helper) In a Trainer battle, Roar will not select a fainted Pokémon on the opponent's team.In this test, a Houndstone that knows Roar faces a Tyrunt that knows Sleep Talk. The Tyrunt has a Dipplin and a Hydrapple on its team to switch into. The Tyrunt also has a Pidgeotto, Sandslash, and Oddish on its team that are all at 5% HP.
Turn 1 The Tyrunt is switched out and the Pidgeotto is switched in. The Pidgeotto faints to Stealth Rock. The Houndstone uses Sleep Talk. Turn 2 The Sandslash is switched in. The Sandslash faints to Stealth Rock. The Houndstone uses Sleep Talk. Turn 3 The Oddish is switched in. The Oddish faints to Stealth Rock. The Houndstone uses Sleep Talk. Turn 3 The Tyrunt is switched in. The Houndstone uses Roar. - After Turn 4 We verify that the Tyrunt is no longer on the battlefield. We verify that the Pidgeotto is fainted. We verify that the Sandslash is fainted. We verify that the Oddish is fainted. We verify that the Pidgeotto is not on the battlefield. We verify that the Sandslash is not on the battlefield. We verify that the Oddish is not on the battlefield. We verify that the Hydrapple and the Dipplin are not on the field at the same time. We verify that the Hydrapple and the Dipplin are not off the field at the same time.
-