2023-05-02 20:08:05 +02:00
|
|
|
#include "global.h"
|
2023-08-12 21:00:15 +02:00
|
|
|
#include "test/battle.h"
|
2023-05-02 20:08:05 +02:00
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Ice Body prevents damage from hail")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
2023-06-23 11:38:18 +02:00
|
|
|
OPPONENT(SPECIES_GLALIE) { Ability(ABILITY_ICE_BODY); }
|
2023-05-02 20:08:05 +02:00
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_HAIL); MOVE(opponent, MOVE_SKILL_SWAP); }
|
|
|
|
} SCENE {
|
|
|
|
NONE_OF { HP_BAR(player); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Ice Body recovers 1/16th of Max HP in hail.")
|
|
|
|
{
|
|
|
|
GIVEN {
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_GLALIE) { Ability(ABILITY_ICE_BODY); HP(1); MaxHP(100); }
|
2023-05-02 20:08:05 +02:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(opponent, MOVE_HAIL); }
|
|
|
|
} SCENE {
|
|
|
|
ABILITY_POPUP(player, ABILITY_ICE_BODY);
|
|
|
|
MESSAGE("Glalie's Ice Body healed it a little bit!");
|
2023-06-22 18:24:35 +02:00
|
|
|
HP_BAR(player, damage: -(100 / 16));
|
2023-05-02 20:08:05 +02:00
|
|
|
}
|
|
|
|
}
|