Class RecoilTests
java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.mechanics.RecoilTests
Tests to verify that Recoil works as intended.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<TestResult> If both the defender and attacker faint due to a move that has recoil, and are the last Pokémon on their teams, then the user of the attack is the winner of the battle.static CompletableFuture<TestResult> If both the defender and attacker faint due to a move that has recoil, and are the last Pokémon on their teams, then the user of the attack is the winner of the battle.static CompletableFuture<TestResult> If both the defender and attacker faint due to a move that has recoil, and are the last Pokémon on their teams, then the user of the attack is the winner of the battle.static CompletableFuture<TestResult> If both the defender and attacker faint due to a move that has recoil, and are the last Pokémon on their teams, then the user of the attack is the winner of the battle.static CompletableFuture<TestResult> A battle won via a move that induces recoil should still gain experience.
-
Constructor Details
-
RecoilTests
public RecoilTests()
-
-
Method Details
-
testFasterUserWithRecoilAttackWinsKnockoutTie
public static CompletableFuture<TestResult> testFasterUserWithRecoilAttackWinsKnockoutTie(BattleTestHelper helper) If both the defender and attacker faint due to a move that has recoil, and are the last Pokémon on their teams, then the user of the attack is the winner of the battle.In this test, a Salamence at 0.5% HP that knows the move Double-Edge faces a Venusaur at 10% HP that knows the move Sleep Talk.
The Salamence selects Double-Edge. The Venusaur selects Sleep Talk. - We verify that the battle has ended. We verify that the Salamence fainted. We verify that the Venusaur fainted. We verify that the Salamence's trainer was not defeated and the Venusaur's trainer was defeated. -
testFasterUserWithRecoilAttackWinsKnockoutTieParticipantsSwitched
public static CompletableFuture<TestResult> testFasterUserWithRecoilAttackWinsKnockoutTieParticipantsSwitched(BattleTestHelper helper) If both the defender and attacker faint due to a move that has recoil, and are the last Pokémon on their teams, then the user of the attack is the winner of the battle.In this test, a Salamence at 0.5% HP that knows the move Double-Edge faces a Venusaur at 10% HP that knows the move Sleep Talk.
The Salamence selects Double-Edge. The Venusaur selects Sleep Talk. - We verify that the battle has ended. We verify that the Salamence fainted. We verify that the Venusaur fainted. We verify that the Salamence's trainer was not defeated and the Venusaur's trainer was defeated. -
testSlowerUserWithRecoilAttackWinsKnockoutTie
public static CompletableFuture<TestResult> testSlowerUserWithRecoilAttackWinsKnockoutTie(BattleTestHelper helper) If both the defender and attacker faint due to a move that has recoil, and are the last Pokémon on their teams, then the user of the attack is the winner of the battle.In this test, a Venusaur at 0.5% HP that knows the move Double-Edge faces a Salamence at 10% HP that knows the move Sleep Talk.
The Venusaur selects Double-Edge. The Salamence selects Sleep Talk. - We verify that the battle has ended. We verify that the Venusaur fainted. We verify that the Salamence fainted. We verify that the Venusaur's trainer was not defeated and the Salamence's trainer was defeated. -
testSlowerUserWithRecoilAttackWinsKnockoutTieParticipantsSwitched
public static CompletableFuture<TestResult> testSlowerUserWithRecoilAttackWinsKnockoutTieParticipantsSwitched(BattleTestHelper helper) If both the defender and attacker faint due to a move that has recoil, and are the last Pokémon on their teams, then the user of the attack is the winner of the battle.In this test, a Venusaur at 0.1% HP that knows the move Double-Edge faces a Salamence at 0.1% HP that knows the move Sleep Talk.
The Venusaur selects Double-Edge. The Salamence selects Sleep Talk. - We verify that the battle has ended. We verify that the Venusaur fainted. We verify that the Salamence fainted. We verify that the Venusaur's trainer was not defeated and the Salamence's trainer was defeated. -
testWinningBattleWithRecoilDoesNotPreventExpGain
public static CompletableFuture<TestResult> testWinningBattleWithRecoilDoesNotPreventExpGain(BattleTestHelper helper) A battle won via a move that induces recoil should still gain experience.In this test, a level 99 Salamence that knows the move Double-Edge faces a Venusaur at 10% HP that knows the move Sleep Talk.
The Salamence selects Double-Edge. The Venusaur selects Sleep Talk. - We verify that the battle has ended. We verify that the Salamence has not fainted. We verify that the Venusaur fainted. We verify that the Salamence has more than zero experience.
-