Class TintedLensTests

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

public class TintedLensTests extends Object
Tests for Tinted Lens
  • Constructor Details

    • TintedLensTests

      public TintedLensTests()
  • Method Details

    • testTintedLensVsDifferentTypeEffectiveness

      public static CompletableFuture<TestResult> testTintedLensVsDifferentTypeEffectiveness(BattleTestHelper helper)
      Tinted Lens doubles the damage done by any moves that the Pokémon uses which are "not very effective". This effect is independent of whether the type effectiveness is ½× or less.

      In this Double Battle test, a Mothim with the Tinted Lens ability that knows Struggle Bug faces a Simisear that knows Sleep Talk and a Hawlucha that knows Sleep Talk. Simisear and Hawlucha have the same base Special Defense, but Struggle Bug should have ½ and ¼ type effectiveness on them, respectively.

           Turn 1
           The Hawlucha uses Sleep Talk.
           The Simisear uses Sleep Talk.
           The Mothim uses Struggle Bug on the Simisear and the Hawlucha.
           -
           After Turn 1
           We verify that the Mothim's Struggle Bug dealt twice the damage to the Simisear as it did to the Hawlucha.