Class TacticalAITests
java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.ai.TacticalAITests
These tests verify that the
TacticalAI
will attempt to use both damage-dealing moves and status moves.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<TestResult> If theTactical AIhas two moves that do the same effect, but one deals damage, it should use the damaging move.static CompletableFuture<TestResult> If theTactical AIhas two moves that can KO the opponent, it should prioritize a move that has a higher priority.
-
Constructor Details
-
TacticalAITests
public TacticalAITests()
-
-
Method Details
-
testUsesPositivePriorityMoveWhenTwoMovesKO
public static CompletableFuture<TestResult> testUsesPositivePriorityMoveWhenTwoMovesKO(BattleTestHelper helper) If theTactical AIhas two moves that can KO the opponent, it should prioritize a move that has a higher priority.In this single battle test, a Veluza using the Tactical AI that knows Liquidation and Aqua Jet faces a Numel that knows Sleep Talk. A Magikarp is on the Numel's team so that the battle does not immediately end. The Tactical AI is made unable to Dynamax.
Turn 1 The Veluza is set to use an attack. The Numel is set to use Sleep Talk. The Magikarp is waiting to switch in. - After Turn 1 We verify that the Veluza used Aqua Jet. -
testUsesDamagingMoveIfTwoMovesHaveSameEffect
public static CompletableFuture<TestResult> testUsesDamagingMoveIfTwoMovesHaveSameEffect(BattleTestHelper helper) If theTactical AIhas two moves that do the same effect, but one deals damage, it should use the damaging move.Thunder Wave and Nuzzle both have a 100% chance of paralyzing the opponent, but Nuzzle is the better choice since Nuzzle also deals damage.
In this single battle test, a Dedenne using the Tactical AI that knows Thunder Wave and Nuzzle faces a Wailmer that knows Sleep Talk. The Tactical AI is made unable to Dynamax.
Turn 1 The Dedenne uses an attack. The Wailmer uses Sleep Talk. - After Turn 1 We verify that the Dedenne used Nuzzle.
-