mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 12:14:20 +01:00
28c6a1af49
Co-authored-by: Eduardo Quezada D'Ottone <eduardo602002@gmail.com>
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
ASSUMPTIONS
|
|
{
|
|
gItems[ITEM_SAFETY_GOGGLES].holdEffect == HOLD_EFFECT_SAFETY_GOGGLES;
|
|
};
|
|
|
|
SINGLE_BATTLE_TEST("Safety Goggles block powder and spore moves")
|
|
{
|
|
GIVEN {
|
|
ASSUME(gBattleMoves[MOVE_STUN_SPORE].powderMove);
|
|
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);
|
|
MESSAGE("Foe Abra is not affected thanks to its SafetyGoggles!");
|
|
}
|
|
}
|
|
|
|
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!");
|
|
}
|
|
}
|
|
|
|
TO_DO_BATTLE_TEST("Safety Goggles blocks Effect Spore's effect");
|