Class TurnOrderTests

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

public class TurnOrderTests extends Object
Tests that verify that the turn order is calculated correctly.
  • Constructor Details

    • TurnOrderTests

      public TurnOrderTests()
  • Method Details

    • testSwiftSwimDoublesSpeedImmediately

      public static CompletableFuture<TestResult> testSwiftSwimDoublesSpeedImmediately(BattleTestHelper helper)
      As of Gen 8, turn order is calculated dynamically, so updates to a Pokémon's Speed stat are reflected in battle immediately and before all Pokémon have taken their action for that turn.

      In this Double Battle test, an 85 Base Speed Seadra that knows Rain Dance is on a team with a 35 Base Speed Omanyte with the Swift Swim ability that knows Rest. Together they face a 58 Base Speed Tinkatink that knows Covet and a 40 Base Speed Bellsprout that knows Poison Powder.

           Turn 1
           The Seadra uses Rain Dance.
           The Omanyte then goes next due to its Swift Swim activating and uses Rest.
           The Tinkatink uses Covet on the Omanyte.
           The Bellsprout uses Poison Powder on the Omanyte.
           -
           After Turn 1
           We verify that the weather is Rain.
           We verify that the Omanyte is poisoned.
           We verify that the Omanyte has taken damage.