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.
-
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.1% HP that knows the move Double-Edge faces a Venusaur at 0.1% 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.1% HP that knows the move Double-Edge faces a Venusaur at 0.1% 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.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.
-
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.
-