pokeemerald/test/ability_hunger_switch.c

26 lines
820 B
C
Raw Normal View History

2023-03-12 21:01:53 +01:00
#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; }
PARAMETRIZE { species = SPECIES_MORPEKO_HANGRY; }
GIVEN {
ASSUME(P_GEN_8_POKEMON == TRUE);
2023-06-23 11:38:18 +02:00
PLAYER(species) { Speed(2); }
OPPONENT(SPECIES_WOBBUFFET) { Speed(1); }
2023-03-12 21:01:53 +01:00
} WHEN {
TURN { MOVE(player, MOVE_CELEBRATE); }
} SCENE {
MESSAGE("Morpeko used Celebrate!");
MESSAGE("Foe Wobbuffet used Celebrate!");
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
} THEN {
if (species == SPECIES_MORPEKO)
EXPECT_EQ(player->species, SPECIES_MORPEKO_HANGRY);
else
EXPECT_EQ(player->species, SPECIES_MORPEKO);
}
}