Class DoubleBattleTests
java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.DoubleBattleTests
Tests for Double Battles
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<TestResult> During a Double Battle, if a player has all but one of their Pokémon fainted (i.e.static CompletableFuture<TestResult> This is a test to verify that when two Pokémon are defeated at the same time, and are being replaced at the same time, that all switching Pokémon will have their battlefield and battle position values updated correctly.
-
Constructor Details
-
DoubleBattleTests
public DoubleBattleTests()
-
-
Method Details
-
testDoubleBattleRevivingWithOnePokemonAlive
public static CompletableFuture<TestResult> testDoubleBattleRevivingWithOnePokemonAlive(BattleTestHelper helper) During a Double Battle, if a player has all but one of their Pokémon fainted (i.e. only one Pokémon on the battlefield), upon reviving one of their Pokémon they should be able to send that revived Pokémon back onto the battlefield.In this Double Battle test, a Pidgeot that knows Sleep Talk is on a team with a Pawmot that knows Protect and Revival Blessing. Together they face a Regieleki that knows Thunderbolt and Sleep Talk as well as an Eternatus that knows Sleep Talk.
Turn 1 The Regieleki uses Thunderbolt on the Pidgeot. The Pidgeot faints. The Eternatus uses Sleep Talk. The Pawmot uses Protect. Turn 2 The Regieleki uses Sleep Talk. The Eternatus uses Sleep Talk. The Pawmot uses Revival Blessing. The Pidgeot is revived. - After Turn 1 We verify that the Pidgeot fainted. We verify that the Pawmot is in the same position on the battlefield. After Turn 2 We verify that the Pidgeot is no longer fainted. We verify that the Pawmot is in the same position on the battlefield. We verify that the Pidgeot is considered as on the battlefield. We verify that the Pidgeot and Pawmot don't have the same position on the battlfield. We verify that the Pidgeot's position on the battlefield has been updated. -
testDoubleBattleSwitchingBattlePositions
public static CompletableFuture<TestResult> testDoubleBattleSwitchingBattlePositions(BattleTestHelper helper) This is a test to verify that when two Pokémon are defeated at the same time, and are being replaced at the same time, that all switching Pokémon will have their battlefield and battle position values updated correctly.In this Double Battle test, a Shadow Rider Calyrex that knows Astral Barrage is on a team with a Glastrier that knows Sleep Talk. Together they face two Honedge that know Sleep Talk. The two Honedge also have a Doublade and an Aegislash on their team.
Turn 1 The Shadow Rider Calyrex uses Astral Barrage. Both Honedge faint. The Glastrier uses Sleep Talk. The first Honedge switches out and the Doublade switches in. The second Honedge switches out and the Aegislash switches in. - Before Turn 1 We verify that the first Honedge has had its battle position set correctly. We verify that the second Honedge has had its battle position set correctly. After Turn 1 We verify that the first Honedge fainted. We verify that the second Honedge fainted. We verify that the first Honedge is no longer considered to be on the battlefield. We verify that the second Honedge is no longer considered to be on the battlefield. We verify that the first Honedge had its position on the battlefield updated. We verify that the second Honedge had its position on the battlefield updated. We verify that the Doublade is considered to be on the battlefield. We verify that the Aegislash is considered to be on the battlefield. We verify that the Doublade battle position is the same as the first Honedge's position. We verify that the Aegislash battle position is the same as the second Honedge's position.
-