mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 19:54:21 +01:00
39 lines
1011 B
C
39 lines
1011 B
C
|
#include "global.h"
|
||
|
#include "test_battle.h"
|
||
|
|
||
|
ASSUMPTIONS
|
||
|
{
|
||
|
ASSUME(gBattleMoves[MOVE_EMBER].effect == EFFECT_BURN_HIT);
|
||
|
}
|
||
|
|
||
|
SINGLE_BATTLE_TEST("Ember inflicts burn")
|
||
|
{
|
||
|
GIVEN {
|
||
|
PLAYER(SPECIES_WOBBUFFET);
|
||
|
OPPONENT(SPECIES_WOBBUFFET);
|
||
|
} WHEN {
|
||
|
TURN { MOVE(player, MOVE_EMBER); }
|
||
|
} SCENE {
|
||
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_EMBER, player);
|
||
|
HP_BAR(opponent);
|
||
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, opponent);
|
||
|
STATUS_ICON(opponent, burn: TRUE);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
SINGLE_BATTLE_TEST("Ember cannot burn a Fire-type")
|
||
|
{
|
||
|
GIVEN {
|
||
|
ASSUME(gSpeciesInfo[SPECIES_CHARMANDER].types[0] == TYPE_FIRE);
|
||
|
PLAYER(SPECIES_WOBBUFFET);
|
||
|
OPPONENT(SPECIES_CHARMANDER);
|
||
|
} WHEN {
|
||
|
TURN { MOVE(player, MOVE_EMBER); }
|
||
|
} SCENE {
|
||
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_EMBER, player);
|
||
|
HP_BAR(opponent);
|
||
|
NOT ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, opponent);
|
||
|
NOT STATUS_ICON(opponent, burn: TRUE);
|
||
|
}
|
||
|
}
|