2022-12-24 05:13:42 +00:00
|
|
|
#include "global.h"
|
2023-08-12 20:00:15 +01:00
|
|
|
#include "test/battle.h"
|
2022-12-24 05:13:42 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-15 02:58:31 +01:00
|
|
|
SINGLE_BATTLE_TEST("Ember cannot burn a Fire-type Pokémon")
|
2022-12-24 05:13:42 +00:00
|
|
|
{
|
|
|
|
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);
|
2023-10-24 08:55:32 +01:00
|
|
|
NONE_OF {
|
|
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, opponent);
|
|
|
|
STATUS_ICON(opponent, burn: TRUE);
|
|
|
|
}
|
2022-12-24 05:13:42 +00:00
|
|
|
}
|
|
|
|
}
|
2023-12-23 15:34:24 +00:00
|
|
|
|
|
|
|
#if B_STATUS_TYPE_IMMUNITY > GEN_1
|
|
|
|
SINGLE_BATTLE_TEST("Scald should burn a Water-type Pokémon")
|
|
|
|
#else
|
|
|
|
SINGLE_BATTLE_TEST("Scald shouldn't burn a Water-type Pokémon")
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
ASSUME(gSpeciesInfo[SPECIES_SQUIRTLE].types[0] == TYPE_WATER);
|
|
|
|
ASSUME(gBattleMoves[MOVE_SCALD].effect == EFFECT_BURN_HIT);
|
|
|
|
ASSUME(gBattleMoves[MOVE_SCALD].type == TYPE_WATER);
|
|
|
|
PLAYER(SPECIES_SQUIRTLE);
|
|
|
|
OPPONENT(SPECIES_SQUIRTLE);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_SCALD); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_SCALD, player);
|
|
|
|
HP_BAR(opponent);
|
|
|
|
#if B_STATUS_TYPE_IMMUNITY > GEN_1
|
|
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, opponent);
|
|
|
|
STATUS_ICON(opponent, burn: TRUE);
|
|
|
|
#else
|
|
|
|
NONE_OF {
|
|
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, opponent);
|
|
|
|
STATUS_ICON(opponent, burn: TRUE);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|