mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
29 lines
796 B
C
29 lines
796 B
C
#include "global.h"
|
|
#include "test_battle.h"
|
|
|
|
SINGLE_BATTLE_TEST("Ice Body prevents damage from hail")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_GLALIE) { Ability(ABILITY_ICE_BODY); }
|
|
} 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 {
|
|
PLAYER(SPECIES_GLALIE) { Ability(ABILITY_ICE_BODY); HP(1); MaxHP(100); }
|
|
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!");
|
|
HP_BAR(player, damage: -(100 / 16));
|
|
}
|
|
}
|