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
|
|
|
|
{
|
2023-11-19 14:05:00 +00:00
|
|
|
ASSUME(gBattleMoves[MOVE_EMBER].additionalEffects[0].moveEffect == MOVE_EFFECT_BURN);
|
2022-12-24 05:13:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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-11-19 14:05:00 +00:00
|
|
|
|
|
|
|
DOUBLE_BATTLE_TEST("Lava Plume inflicts burn to every battler on the field")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
ASSUME(gBattleMoves[MOVE_LAVA_PLUME].additionalEffects[0].moveEffect == MOVE_EFFECT_BURN);
|
|
|
|
ASSUME(gBattleMoves[MOVE_LAVA_PLUME].target == MOVE_TARGET_FOES_AND_ALLY);
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(playerLeft, MOVE_LAVA_PLUME); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_LAVA_PLUME, playerLeft);
|
|
|
|
HP_BAR(opponentLeft);
|
|
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, opponentLeft);
|
|
|
|
STATUS_ICON(opponentLeft, burn: TRUE);
|
|
|
|
HP_BAR(playerRight);
|
|
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, playerRight);
|
|
|
|
STATUS_ICON(playerRight, burn: TRUE);
|
|
|
|
HP_BAR(opponentRight);
|
|
|
|
STATUS_ICON(opponentRight, burn: TRUE);
|
|
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, opponentRight);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Matcha Gotcha inflicts burn 20% of the time")
|
|
|
|
{
|
|
|
|
PASSES_RANDOMLY(20, 100, RNG_SECONDARY_EFFECT);
|
|
|
|
GIVEN {
|
|
|
|
ASSUME(gBattleMoves[MOVE_MATCHA_GOTCHA].additionalEffects[0].moveEffect == MOVE_EFFECT_BURN);
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_MATCHA_GOTCHA); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_MATCHA_GOTCHA, player);
|
|
|
|
HP_BAR(opponent);
|
|
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, opponent);
|
|
|
|
STATUS_ICON(opponent, burn: TRUE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
DOUBLE_BATTLE_TEST("Matcha Gatcha can burn both targets")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
ASSUME(gBattleMoves[MOVE_MATCHA_GOTCHA].additionalEffects[0].moveEffect == MOVE_EFFECT_BURN);
|
|
|
|
PLAYER(SPECIES_WOBBUFFET) { HP(1); }
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(playerLeft, MOVE_MATCHA_GOTCHA); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_MATCHA_GOTCHA, playerLeft);
|
|
|
|
HP_BAR(opponentLeft);
|
|
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, opponentLeft);
|
|
|
|
STATUS_ICON(opponentLeft, burn: TRUE);
|
|
|
|
HP_BAR(opponentRight);
|
|
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, opponentRight);
|
|
|
|
STATUS_ICON(opponentRight, burn: TRUE);
|
|
|
|
}
|
|
|
|
}
|