Class PoisonAITests

java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.ai.PoisonAITests

public class PoisonAITests extends Object
Old AI used to throw Toxic at things it cant poison, steel types and mons that already have a status. The pick is a weighted random when more than one move is useful, so we sample it a bunch and fail if Toxic ever comes up. Tackle is just a weak filler so Toxic stays tempting.
  • Constructor Details

    • PoisonAITests

      public PoisonAITests()
  • Method Details

    • testDoesNotUseToxicOnSteelType

      public static CompletableFuture<TestResult> testDoesNotUseToxicOnSteelType(BattleTestHelper helper)
      Steel is immune to poison, so the AI shouldnt ever land on Toxic here.
    • testDoesNotUseToxicOnStatusedTarget

      public static CompletableFuture<TestResult> testDoesNotUseToxicOnStatusedTarget(BattleTestHelper helper)
      One non-volatile status at a time, so Toxic cant land on an already burned mon and the AI shouldnt pick it.