Class HordeBattleTests

java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.HordeBattleTests

public class HordeBattleTests extends Object
Tests to handle the special mechanics around Horde Encounters
  • Constructor Details

    • HordeBattleTests

      public HordeBattleTests()
  • Method Details

    • testPlayerPokemonStartsInMiddle

      public static CompletableFuture<TestResult> testPlayerPokemonStartsInMiddle(BattleTestHelper helper)
      The player's moves in a Horde Encounter act as if the player was in the center of a Triple Battle, except with all five other locations being treated as opponents instead of three opponents and two allies. Moves that target multiple Pokémon simultaneously (like Rock Slide and Surf) are able to strike all five Pokémon at once.

      In this Horde Battle test, a Swampert that knows Surf faces five Donphan that know Sleep Talk. Due to how Horde Battles are set up in Pixelmon, this test requires that each wild Donphan have its own Battle Participant.

           Turn 1
           The Swampert uses Surf.
           All of the Donphan use Sleep Talk.
           -
           We verify that all of the Donphan are on the battlefield.
           We verify that none of the Donphan are still at full health.