Class SoulHeartTests

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

public class SoulHeartTests extends Object
Tests for Soul Heart
  • Constructor Details

    • SoulHeartTests

      public SoulHeartTests()
  • Method Details

    • shouldActivateForEachFaint

      public static CompletableFuture<TestResult> shouldActivateForEachFaint(BattleTestHelper helper)
      Soul-Heart raises the user's Special Attack by one stage every time another Pokémon faints, which includes its allies and opponents.

      In this Double Battle test, a Toxapex that knows Sleep Talk and a Victini that knows Final Gambit face a Magearna (with the Soul Heart ability) that knows Sleep Talk and a Wynaut that knows Sleep Talk.

           Turn 1
           The Victini uses Final Gambit on the Wynaut. The Victini faints. The Wynaut faints.
           The Magearna uses Sleep Talk.
           The Toxapex uses Sleep Talk.
           The Wynaut had selected to use Sleep Talk, but is fainted.
           -
           After Turn 1
           We verify that the Magearna's Special Attack was raised by two stages.
           We verify that two messages were sent to the battle log for each time Magearna's Soul Heart activated.
       
    • shouldNotActivateIfAlliedSoulHeartDieToSameMove

      public static CompletableFuture<TestResult> shouldNotActivateIfAlliedSoulHeartDieToSameMove(BattleTestHelper helper)
      Soul-Heart should not activate on a Magearna if the Magearna would faint from the same attack that would activate Soul-Heart.

      In this Double Battle test, a Charizard that knows Sleep Talk and a Victini that knows Earthquake face a Magearna (with the Soul Heart ability) that knows Sleep Talk and a second Magearna (with the Soul Heart ability) that knows Sleep Talk.

           Turn 1
           The Charizard uses Sleep Talk.
           The Victini uses Earthquake. Both Magearna faint.
           Both Magearna would have used Sleep Talk.
           -
           After Turn 1
           We verify that no messages were sent to the battle log for either of the Magearna's Soul Heart activating.
       
    • testSoulHeartActivatesUponWeatherDamage

      public static CompletableFuture<TestResult> testSoulHeartActivatesUponWeatherDamage(BattleTestHelper helper)
      Soul-Heart activates when another Pixelmon faints, including if they faint from weather damage.

      In this test, a Magearna with the Soul-Heart ability that knows Sleep Talk faces a Carbink at 1% HP that knows Hail. The Carbink has a Bergmite on its team waiting in reserve.

           Turn 1
           The Magearna uses Sleep Talk.
           The Carbink uses Hail.
           -
           After Turn 1
           We verify that the Magearna took damage.
           We verify that the Carbink fainted.
           We verify that the Magearna's Special Attack was increased by one stage.
       
    • testSoulHeartActivatesUponBurnDamage

      public static CompletableFuture<TestResult> testSoulHeartActivatesUponBurnDamage(BattleTestHelper helper)
      Soul-Heart activates when another Pixelmon faints, including if they faint from burn damage.

      In this Double Battle test, a Magearna with the Soul-Heart ability that knows Sleep Talk is on a team with a Charcadet that knows Will-O-Wisp. Together they face a Carbink at 1% HP that knows Sleep Talk and a Bergmite that also knows Sleep Talk.

           Turn 1
           The Magearna uses Sleep Talk.
           The Carbink uses Sleep Talk.
           The Charcadet uses Will-O-Wisp on the Carbink.
           The Bergmite uses Sleep Talk.
           -
           After Turn 1
           We verify that the Carbink fainted.
           We verify that the Magearna's Special Attack was increased by one stage.
       
    • testSoulHeartActivatesUponPoisonDamage

      public static CompletableFuture<TestResult> testSoulHeartActivatesUponPoisonDamage(BattleTestHelper helper)
      Soul-Heart activates when another Pixelmon faints, including if they faint from poison damage.

      In this Double Battle test, a Magearna with the Soul-Heart ability that knows Sleep Talk is on a team with a Dragalge that knows Toxic. Together they face a Grubbin at 1% HP that knows Sleep Talk and a Tynamo that also knows Charge.

           Turn 1
           The Magearna uses Sleep Talk.
           The Tynamo uses Sleep Talk.
           The Grubbin uses Sleep Talk.
           The Dragalge uses Toxic on the Grubbin.
           -
           After Turn 1
           We verify that the Grubbin fainted.
           We verify that the Magearna's Special Attack was increased by one stage.