Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing Belch tests #5881

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 56 additions & 4 deletions test/battle/move_effect/belch.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ AI_SINGLE_BATTLE_TEST("AI: Belch has nonzero score after eating a berry")
TURN { MOVE(player, MOVE_MUD_SHOT); EXPECT_MOVE(opponent, MOVE_TACKLE); }
TURN { MOVE(player, MOVE_TACKLE); EXPECT_MOVE(opponent, MOVE_BELCH);}
} SCENE {
ANIMATION(ANIM_TYPE_MOVE, MOVE_BELCH, opponent);
ANIMATION(ANIM_TYPE_MOVE, MOVE_BELCH, opponent);
}
}

Expand Down Expand Up @@ -53,6 +53,58 @@ SINGLE_BATTLE_TEST("Belch cannot be used if the user has not eaten a berry")
}
}

TO_DO_BATTLE_TEST("Belch can still be used after switching out");
TO_DO_BATTLE_TEST("Belch can still be used after fainting");
TO_DO_BATTLE_TEST("Belch can still be used after restoring the consumed berry");
SINGLE_BATTLE_TEST("Belch can still be used after switching out")
{
GIVEN {
PLAYER(SPECIES_GREEDENT) { Item(ITEM_ORAN_BERRY); }
AsparagusEduardo marked this conversation as resolved.
Show resolved Hide resolved
PLAYER(SPECIES_SKWOVET);
OPPONENT(SPECIES_WOBBUFFET);
} WHEN {
TURN { MOVE(player, MOVE_STUFF_CHEEKS); }
TURN { SWITCH(player, 1); }
TURN { SWITCH(player, 0); }
TURN { MOVE(player, MOVE_BELCH); }
} SCENE {
ANIMATION(ANIM_TYPE_MOVE, MOVE_STUFF_CHEEKS, player);
SWITCH_OUT_MESSAGE("Greedent");
SWITCH_OUT_MESSAGE("Skwovet");
ANIMATION(ANIM_TYPE_MOVE, MOVE_BELCH, player);
}
}

SINGLE_BATTLE_TEST("Belch can still be used after fainting")
{
GIVEN {
PLAYER(SPECIES_GREEDENT) { Item(ITEM_ORAN_BERRY); }
AsparagusEduardo marked this conversation as resolved.
Show resolved Hide resolved
PLAYER(SPECIES_SKWOVET);
OPPONENT(SPECIES_WOBBUFFET);
} WHEN {
TURN { MOVE(player, MOVE_STUFF_CHEEKS); MOVE(opponent, MOVE_FISSURE); SEND_OUT(player, 1); }
TURN { MOVE(player, MOVE_REVIVAL_BLESSING, partyIndex: 0); }
TURN { SWITCH(player, 0); }
TURN { MOVE(player, MOVE_BELCH); }
} SCENE {
ANIMATION(ANIM_TYPE_MOVE, MOVE_STUFF_CHEEKS, player);
ANIMATION(ANIM_TYPE_MOVE, MOVE_FISSURE, opponent);
ANIMATION(ANIM_TYPE_MOVE, MOVE_REVIVAL_BLESSING, player);
SWITCH_OUT_MESSAGE("Skwovet");
ANIMATION(ANIM_TYPE_MOVE, MOVE_BELCH, player);
}
}

SINGLE_BATTLE_TEST("Belch can still be used after restoring the consumed berry")
{
GIVEN {
PLAYER(SPECIES_GREEDENT) { Item(ITEM_ORAN_BERRY); }
AsparagusEduardo marked this conversation as resolved.
Show resolved Hide resolved
PLAYER(SPECIES_SKWOVET);
OPPONENT(SPECIES_WOBBUFFET);
} WHEN {
TURN { MOVE(player, MOVE_STUFF_CHEEKS); }
TURN { MOVE(player, MOVE_RECYCLE); }
TURN { MOVE(player, MOVE_BELCH); }
} SCENE {
ANIMATION(ANIM_TYPE_MOVE, MOVE_STUFF_CHEEKS, player);
ANIMATION(ANIM_TYPE_MOVE, MOVE_RECYCLE, player);
ANIMATION(ANIM_TYPE_MOVE, MOVE_BELCH, player);
}
}
Loading