2023-08-12 20:00:15 +01:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
2024-01-26 18:25:52 +00:00
|
|
|
ASSUME(gItemsInfo[ITEM_SAFETY_GOGGLES].holdEffect == HOLD_EFFECT_SAFETY_GOGGLES);
|
2023-08-12 20:00:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Safety Goggles block powder and spore moves")
|
|
|
|
{
|
|
|
|
GIVEN {
|
2024-01-29 11:51:32 +00:00
|
|
|
ASSUME(gMovesInfo[MOVE_STUN_SPORE].powderMove);
|
2023-08-12 20:00:15 +01:00
|
|
|
PLAYER(SPECIES_WYNAUT);
|
|
|
|
OPPONENT(SPECIES_ABRA) { Item(ITEM_SAFETY_GOGGLES); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_STUN_SPORE); }
|
|
|
|
} SCENE {
|
|
|
|
NOT ANIMATION(ANIM_TYPE_MOVE, MOVE_STUN_SPORE, player);
|
2024-03-16 15:26:03 +00:00
|
|
|
MESSAGE("Foe Abra is not affected thanks to its Safety Goggles!");
|
2023-08-12 20:00:15 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-15 02:58:31 +01:00
|
|
|
SINGLE_BATTLE_TEST("Safety Goggles blocks damage from Hail")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET) { Item(ITEM_SAFETY_GOGGLES); };
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_HAIL); }
|
|
|
|
} SCENE {
|
|
|
|
NOT MESSAGE("Foe Wobbuffet is pelted by HAIL!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Safety Goggles blocks damage from Sandstorm")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET) { Item(ITEM_SAFETY_GOGGLES); };
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_SANDSTORM); }
|
|
|
|
} SCENE {
|
|
|
|
NOT MESSAGE("Foe Wobbuffet is buffeted by the sandstorm!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-12 20:00:15 +01:00
|
|
|
TO_DO_BATTLE_TEST("Safety Goggles blocks Effect Spore's effect");
|