db24128ee3
Co-authored-by: Eduardo Quezada <eduardo602002@gmail.com>
24 lines
821 B
C
24 lines
821 B
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
SINGLE_BATTLE_TEST("Hunger Switch switches Morpeko's forms at the end of the turn")
|
|
{
|
|
u16 species;
|
|
PARAMETRIZE { species = SPECIES_MORPEKO_FULL_BELLY; }
|
|
PARAMETRIZE { species = SPECIES_MORPEKO_HANGRY; }
|
|
GIVEN {
|
|
PLAYER(species) { Speed(2); }
|
|
OPPONENT(SPECIES_WOBBUFFET) { Speed(1); }
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_CELEBRATE); }
|
|
} SCENE {
|
|
MESSAGE("Morpeko used Celebrate!");
|
|
MESSAGE("The opposing Wobbuffet used Celebrate!");
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
} THEN {
|
|
if (species == SPECIES_MORPEKO_FULL_BELLY)
|
|
EXPECT_EQ(player->species, SPECIES_MORPEKO_HANGRY);
|
|
else
|
|
EXPECT_EQ(player->species, SPECIES_MORPEKO_FULL_BELLY);
|
|
}
|
|
}
|