mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-28 04:34:28 +01:00
09fc48461f
# Conflicts: # test/battle/move_flags/three_strikes.c # test/move_flag_strike_count.c # test/move_flag_three_strikes.c # test/powder_moves.c # test/status1.c
27 lines
871 B
C
27 lines
871 B
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);
|
|
ASSUME(gItems[ITEM_SAFETY_GOGGLES].holdEffect == HOLD_EFFECT_SAFETY_GOGGLES);
|
|
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!");
|
|
}
|
|
}
|
|
|
|
TO_DO_BATTLE_TEST("Safety Goggles blocks damage from hail");
|
|
TO_DO_BATTLE_TEST("Safety Goggles blocks damage from sandstorm");
|
|
TO_DO_BATTLE_TEST("Safety Goggles blocks Effect Spore's effect");
|