Class ExpShareTests

java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.item.ExpShareTests

public class ExpShareTests extends Object
Tests for the Exp. Share
  • Constructor Details

    • ExpShareTests

      public ExpShareTests()
  • Method Details

    • testExpShareAwardsExperience

      public static CompletableFuture<TestResult> testExpShareAwardsExperience(BattleTestHelper helper)
      A non-fainted Pokémon holding an Exp. Share receives experience even if it did not participate in a battle.

      In this Single Battle test, a Grovyle that knows the move Leaf Storm and a level 5 Treecko that holds an Exp. Share and knows the move Sleep Talk face a Quagsire that knows the move Sleep Talk and a Magikarp that knows the move Splash.

           Turn 1
           The Grovyle uses Leaf Storm. The Quagsire faints.
           The Magikarp is switched in for the fainted Quagsire.
           -
           We verify that the Treecko is not the same level.
           If it is, we verify that the Treecko's current amount of Experience is not the same.