2023-05-02 20:08:05 +02:00
|
|
|
#include "global.h"
|
|
|
|
#include "test_battle.h"
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Snow Cloak prevents damage from hail")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
2023-06-23 11:38:18 +02:00
|
|
|
OPPONENT(SPECIES_GLACEON) { Ability(ABILITY_SNOW_CLOAK); }
|
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("Snow Cloak increases evasion during hail")
|
|
|
|
{
|
|
|
|
PASSES_RANDOMLY(4, 5, RNG_ACCURACY);
|
|
|
|
GIVEN {
|
|
|
|
ASSUME(gBattleMoves[MOVE_POUND].accuracy == 100);
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_GLACEON) { Ability(ABILITY_SNOW_CLOAK); }
|
2023-05-02 20:08:05 +02:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(opponent, MOVE_HAIL); }
|
|
|
|
TURN { MOVE(opponent, MOVE_POUND); }
|
|
|
|
} SCENE {
|
|
|
|
HP_BAR(player);
|
|
|
|
}
|
|
|
|
}
|