mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
54 lines
1.6 KiB
C
54 lines
1.6 KiB
C
#include "global.h"
|
|
#include "test_battle.h"
|
|
|
|
ASSUMPTIONS
|
|
{
|
|
ASSUME(gBattleMoves[MOVE_BURN_UP].effect == EFFECT_BURN_UP);
|
|
ASSUME(gSpeciesInfo[SPECIES_WOBBUFFET].types[0] != TYPE_FIRE || gSpeciesInfo[SPECIES_WOBBUFFET].types[1] != TYPE_FIRE);
|
|
ASSUME(gSpeciesInfo[SPECIES_CYNDAQUIL].types[0] == TYPE_FIRE || gSpeciesInfo[SPECIES_CYNDAQUIL].types[1] == TYPE_FIRE);
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Burn Up user loses its Fire-type")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_CYNDAQUIL);
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_BURN_UP); }
|
|
TURN { MOVE(player, MOVE_BURN_UP); }
|
|
} SCENE {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_BURN_UP, player);
|
|
MESSAGE("Cyndaquil burned itself out!");
|
|
MESSAGE("Cyndaquil used Burn Up!");
|
|
MESSAGE("But it failed!");
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Burn Up fails if the user isn't a Fire-type")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_BURN_UP); }
|
|
} SCENE {
|
|
NONE_OF { ANIMATION(ANIM_TYPE_MOVE, MOVE_BURN_UP, player); }
|
|
MESSAGE("Wobbuffet used Burn Up!");
|
|
MESSAGE("But it failed!");
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Burn Up user loses its Fire-type if enemy faints")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_CYNDAQUIL);
|
|
OPPONENT(SPECIES_WOBBUFFET) { HP(1); }
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_BURN_UP); }
|
|
} SCENE {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_BURN_UP, player);
|
|
HP_BAR(opponent, hp: 0);
|
|
MESSAGE("Cyndaquil burned itself out!");
|
|
}
|
|
}
|