2023-05-02 19:08:05 +01:00
|
|
|
#include "global.h"
|
2023-08-12 20:00:15 +01:00
|
|
|
#include "test/battle.h"
|
2023-05-02 19:08:05 +01:00
|
|
|
|
2024-08-16 22:02:49 +01:00
|
|
|
ASSUMPTIONS {
|
|
|
|
ASSUME(gMovesInfo[MOVE_RAIN_DANCE].effect == EFFECT_RAIN_DANCE);
|
|
|
|
}
|
|
|
|
|
2023-05-02 19:08:05 +01:00
|
|
|
SINGLE_BATTLE_TEST("Rain Dish recovers 1/16th of Max HP in Rain")
|
|
|
|
{
|
|
|
|
GIVEN {
|
2023-06-23 10:38:18 +01:00
|
|
|
PLAYER(SPECIES_LUDICOLO) { Ability(ABILITY_RAIN_DISH); HP(1); MaxHP(100); }
|
2023-05-02 19:08:05 +01:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(opponent, MOVE_RAIN_DANCE); }
|
|
|
|
} SCENE {
|
|
|
|
ABILITY_POPUP(player, ABILITY_RAIN_DISH);
|
|
|
|
MESSAGE("Ludicolo's Rain Dish restored its HP a little!");
|
2024-08-16 22:02:49 +01:00
|
|
|
HP_BAR(player, damage: -(100 / 16));
|
2023-05-02 19:08:05 +01:00
|
|
|
}
|
|
|
|
}
|
2024-08-14 14:43:18 +01:00
|
|
|
|
2024-08-16 22:02:49 +01:00
|
|
|
SINGLE_BATTLE_TEST("Rain Dish doesn't recover HP if Cloud Nine/Air Lock is on the field")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_LUDICOLO) { Ability(ABILITY_RAIN_DISH); HP(1); MaxHP(100); }
|
|
|
|
OPPONENT(SPECIES_GOLDUCK) { Ability(ABILITY_CLOUD_NINE); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(opponent, MOVE_RAIN_DANCE); }
|
|
|
|
} SCENE {
|
|
|
|
NOT ABILITY_POPUP(player, ABILITY_RAIN_DISH);
|
|
|
|
}
|
|
|
|
}
|