2022-12-24 06:13:42 +01:00
|
|
|
#include "global.h"
|
2023-08-12 21:00:15 +02:00
|
|
|
#include "test/battle.h"
|
2022-12-24 06:13:42 +01:00
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Flame Body inflicts burn on contact")
|
|
|
|
{
|
|
|
|
u32 move;
|
|
|
|
PARAMETRIZE { move = MOVE_TACKLE; }
|
|
|
|
PARAMETRIZE { move = MOVE_SWIFT; }
|
|
|
|
GIVEN {
|
2023-07-03 10:01:59 +02:00
|
|
|
ASSUME(gBattleMoves[MOVE_TACKLE].makesContact);
|
|
|
|
ASSUME(!gBattleMoves[MOVE_SWIFT].makesContact);
|
2022-12-24 06:13:42 +01:00
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_MAGMAR) { Ability(ABILITY_FLAME_BODY); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, move); }
|
|
|
|
} SCENE {
|
2023-07-03 10:01:59 +02:00
|
|
|
if (gBattleMoves[move].makesContact) {
|
2022-12-24 06:13:42 +01: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 09:55:32 +02: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 06:13:42 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|