32 lines
932 B
C
32 lines
932 B
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
ASSUMPTIONS
|
|
{
|
|
ASSUME(MoveHasAdditionalEffect(MOVE_GLITZY_GLOW, MOVE_EFFECT_LIGHT_SCREEN) == TRUE);
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Glitzy Glow sets up Light Screen when it was succesful")
|
|
{
|
|
bool32 moveSuccess;
|
|
PARAMETRIZE { moveSuccess = FALSE; }
|
|
PARAMETRIZE { moveSuccess = TRUE; }
|
|
|
|
GIVEN {
|
|
PLAYER(SPECIES_WYNAUT);
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_GLITZY_GLOW, hit: moveSuccess); }
|
|
} SCENE {
|
|
if (moveSuccess == TRUE)
|
|
{
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_GLITZY_GLOW, player);
|
|
MESSAGE("Light Screen made your team stronger against special moves!");
|
|
} else {
|
|
NONE_OF {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_GLITZY_GLOW, player);
|
|
MESSAGE("Light Screen made your team stronger against special moves!");
|
|
}
|
|
}
|
|
}
|
|
}
|