Adds Liquid Ooze and Aromatic Mist test (#6012)

This commit is contained in:
Alex 2025-01-12 13:08:04 +01:00 committed by GitHub
parent 9c7c94d474
commit 96122d9342
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 63 additions and 2 deletions

View File

@ -108,5 +108,32 @@ SINGLE_BATTLE_TEST("Liquid Ooze causes Strength Sap users to lose HP instead of
}
}
SINGLE_BATTLE_TEST("Liquid Ooze causes leech seedee to faint before seeder")
{
KNOWN_FAILING; // Message fails
u16 ability;
PARAMETRIZE { ability = ABILITY_CLEAR_BODY; }
PARAMETRIZE { ability = ABILITY_LIQUID_OOZE; }
GIVEN {
PLAYER(SPECIES_BULBASAUR) { HP(1); }
OPPONENT(SPECIES_TENTACOOL) { HP(1); Ability(ability); }
} WHEN {
TURN { MOVE(player, MOVE_LEECH_SEED); }
} SCENE {
MESSAGE("Bulbasaur used Leech Seed!");
// Drain at end of turn
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_LEECH_SEED_DRAIN, opponent);
if (ability != ABILITY_LIQUID_OOZE) {
MESSAGE("The opposing Tentacool's health is sapped by Leech Seed!");
MESSAGE("The opposing Tentacool fainted!");
} else {
ABILITY_POPUP(opponent, ABILITY_LIQUID_OOZE);
MESSAGE("Bulbasaur sucked up the liquid ooze!");
MESSAGE("The opposing Tentacool fainted!");
MESSAGE("Bulbasaur fainted!");
}
}
}
TO_DO_BATTLE_TEST("Liquid Ooze does not cause Dream Eater users to lose HP instead of heal (Gen 3-4");
TO_DO_BATTLE_TEST("Liquid Ooze causes Dream Eater users to lose HP instead of heal (Gen 5+");

View File

@ -1,5 +1,39 @@
#include "global.h"
#include "test/battle.h"
TO_DO_BATTLE_TEST("Aromatic Mist raises Sp. Defense of a target ally by 1 stage");
TO_DO_BATTLE_TEST("Aromatic Mist fails in Single Battles");
DOUBLE_BATTLE_TEST("Aromatic Mist raises Sp. Defense of a target ally by 1 stage")
{
GIVEN {
PLAYER(SPECIES_WEEZING_GALAR);
PLAYER(SPECIES_SYLVEON);
OPPONENT(SPECIES_WOBBUFFET);
OPPONENT(SPECIES_WYNAUT);
} WHEN {
TURN { MOVE(playerLeft, MOVE_AROMATIC_MIST); }
} SCENE {
MESSAGE("Weezing used Aromatic Mist!");
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, playerRight);
} THEN {
EXPECT_EQ(playerLeft->statStages[STAT_SPDEF], DEFAULT_STAT_STAGE);
EXPECT_EQ(playerRight->statStages[STAT_SPDEF], DEFAULT_STAT_STAGE + 1);
EXPECT_EQ(opponentLeft->statStages[STAT_SPDEF], DEFAULT_STAT_STAGE);
EXPECT_EQ(opponentRight->statStages[STAT_SPDEF], DEFAULT_STAT_STAGE);
}
}
SINGLE_BATTLE_TEST("Aromatic Mist fails in Single Battles")
{
GIVEN {
PLAYER(SPECIES_WEEZING_GALAR);
OPPONENT(SPECIES_WOBBUFFET);
} WHEN {
TURN { MOVE(player, MOVE_AROMATIC_MIST); }
} SCENE {
MESSAGE("Weezing used Aromatic Mist!");
MESSAGE("But it failed!");
NOT ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, player);
} THEN {
EXPECT_EQ(player->statStages[STAT_SPDEF], DEFAULT_STAT_STAGE);
EXPECT_EQ(opponent->statStages[STAT_SPDEF], DEFAULT_STAT_STAGE);
}
}