2023-02-03 00:22:02 +01:00
|
|
|
#include "global.h"
|
2023-08-12 21:00:15 +02:00
|
|
|
#include "test/battle.h"
|
2023-02-03 00:22:02 +01:00
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Sand Veil prevents damage from sandstorm")
|
|
|
|
{
|
|
|
|
GIVEN {
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_CACNEA) { Ability(ABILITY_SAND_VEIL); }
|
2023-02-03 00:22:02 +01:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(opponent, MOVE_SANDSTORM); }
|
|
|
|
TURN {}
|
|
|
|
} SCENE {
|
|
|
|
NONE_OF { HP_BAR(player); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-02 20:08:05 +02:00
|
|
|
SINGLE_BATTLE_TEST("Sand Veil increases evasion during sandstorm")
|
2023-02-03 00:22:02 +01:00
|
|
|
{
|
2023-02-20 21:06:01 +01:00
|
|
|
PASSES_RANDOMLY(4, 5, RNG_ACCURACY);
|
2023-02-03 00:22:02 +01:00
|
|
|
GIVEN {
|
|
|
|
ASSUME(gBattleMoves[MOVE_POUND].accuracy == 100);
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_SANDSHREW) { Ability(ABILITY_SAND_VEIL); }
|
2023-02-03 00:22:02 +01:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(opponent, MOVE_SANDSTORM); }
|
|
|
|
TURN { MOVE(opponent, MOVE_POUND); }
|
|
|
|
} SCENE {
|
|
|
|
HP_BAR(player);
|
|
|
|
}
|
|
|
|
}
|