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
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Flame Body inflicts burn on contact")
|
|
|
|
{
|
|
|
|
u32 move;
|
|
|
|
PARAMETRIZE { move = MOVE_TACKLE; }
|
|
|
|
PARAMETRIZE { move = MOVE_SWIFT; }
|
|
|
|
GIVEN {
|
2024-01-29 11:51:32 +00:00
|
|
|
ASSUME(gMovesInfo[MOVE_TACKLE].makesContact);
|
|
|
|
ASSUME(!gMovesInfo[MOVE_SWIFT].makesContact);
|
2022-12-24 05:13:42 +00:00
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_MAGMAR) { Ability(ABILITY_FLAME_BODY); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, move); }
|
|
|
|
} SCENE {
|
2024-01-29 11:51:32 +00:00
|
|
|
if (gMovesInfo[move].makesContact) {
|
2022-12-24 05:13:42 +00:00
|
|
|
ABILITY_POPUP(opponent, ABILITY_FLAME_BODY);
|
|
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, player);
|
|
|
|
MESSAGE("Foe Magmar's Flame Body burned Wobbuffet!");
|
|
|
|
STATUS_ICON(player, burn: TRUE);
|
|
|
|
} else {
|
2023-10-24 08:55:32 +01:00
|
|
|
NONE_OF {
|
|
|
|
ABILITY_POPUP(opponent, ABILITY_FLAME_BODY);
|
|
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, player);
|
|
|
|
MESSAGE("Foe Magmar's Flame Body burned Wobbuffet!");
|
|
|
|
STATUS_ICON(player, burn: TRUE);
|
|
|
|
}
|
2022-12-24 05:13:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-06-18 19:13:44 +01:00
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Flame Body triggers 30% of the time")
|
|
|
|
{
|
|
|
|
PASSES_RANDOMLY(3, 10, RNG_FLAME_BODY);
|
|
|
|
GIVEN {
|
|
|
|
ASSUME(B_ABILITY_TRIGGER_CHANCE >= GEN_4);
|
|
|
|
ASSUME(gMovesInfo[MOVE_TACKLE].makesContact);
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_MAGMAR) { Ability(ABILITY_FLAME_BODY); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_TACKLE); }
|
|
|
|
} SCENE {
|
|
|
|
ABILITY_POPUP(opponent, ABILITY_FLAME_BODY);
|
|
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, player);
|
|
|
|
MESSAGE("Foe Magmar's Flame Body burned Wobbuffet!");
|
|
|
|
STATUS_ICON(player, burn: TRUE);
|
|
|
|
}
|
|
|
|
}
|