mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Hunger Switch test
This commit is contained in:
parent
a0feaabef1
commit
a101476d51
25
test/ability_hunger_switch.c
Normal file
25
test/ability_hunger_switch.c
Normal file
@ -0,0 +1,25 @@
|
||||
#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);
|
||||
PLAYER(species) { Moves(MOVE_CELEBRATE); Speed(2); };
|
||||
OPPONENT(SPECIES_WOBBUFFET) { Moves(MOVE_CELEBRATE); Speed(1); };
|
||||
} 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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user