Class PoisonAITests
java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.ai.PoisonAITests
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<TestResult> One non-volatile status at a time, so Toxic cant land on an already burned mon and the AI shouldnt pick it.static CompletableFuture<TestResult> Steel is immune to poison, so the AI shouldnt ever land on Toxic here.
-
Constructor Details
-
PoisonAITests
public PoisonAITests()
-
-
Method Details
-
testDoesNotUseToxicOnSteelType
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.
-