Class CompoundEyesTests

java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.ability.CompoundEyesTests

public class CompoundEyesTests extends Object
Tests for the Compound Eyes ability
  • Constructor Details

    • CompoundEyesTests

      public CompoundEyesTests()
  • Method Details

    • testCompoundEyesIncreasesAccuracyByThirtyPercent

      public static CompletableFuture<TestResult> testCompoundEyesIncreasesAccuracyByThirtyPercent(BattleTestHelper helper)
      Compound Eyes increases the accuracy of moves used by the Pokémon with this Ability by multiplying the original accuracy by a factor of 1.3.

      In this test, a Butterfree with the Compound Eyes ability that knows the move Hurricane faces a Ampharos that knows the move Sleep Talk.

           Turn 1
           The Butterfree uses Hurricane on the Ampharos.
           The Ampharos uses Sleep Talk.
           -
           We verify that the Butterfree's Hurricane had its accuracy raised from 70 to 91.
       
    • testCompoundEyesDoesNotAffectOneHitKOMoves

      public static CompletableFuture<TestResult> testCompoundEyesDoesNotAffectOneHitKOMoves(BattleTestHelper helper)
      Compound Eyes increases the accuracy of moves used by the Pokémon with this Ability by multiplying the original accuracy by a factor of 1.3. It does not affect one-hit knockout moves.

      In this test, a Butterfree with the Compound Eyes ability that knows the move Guillotine faces a Magikarp that knows the move Splash. Butterfree cannot actually learn Guillotine.

           Turn 1
           The Butterfree uses Guillotine on the Magikarp.
           The Magikarp uses Splash.
           -
           We verify that the Butterfree's Guillotine did not have its accuracy adjusted.