2024-02-19 12:36:21 +00:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Dancer can copy a dance move immediately after it was used and allow the user of Dancer to still use its move")
|
|
|
|
{
|
|
|
|
GIVEN {
|
2024-02-19 13:13:13 +00:00
|
|
|
ASSUME(gMovesInfo[MOVE_QUIVER_DANCE].danceMove == TRUE);
|
2024-02-19 12:36:21 +00:00
|
|
|
PLAYER(SPECIES_WOBBUFFET)
|
|
|
|
OPPONENT(SPECIES_ORICORIO) { Ability(ABILITY_DANCER); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_QUIVER_DANCE); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_QUIVER_DANCE, player);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, player);
|
|
|
|
ABILITY_POPUP(opponent, ABILITY_DANCER);
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_QUIVER_DANCE, opponent);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, opponent);
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_CELEBRATE, opponent); // Same turn
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Dancer can copy Teeter Dance")
|
|
|
|
{
|
|
|
|
GIVEN {
|
2024-02-19 13:13:13 +00:00
|
|
|
ASSUME(gMovesInfo[MOVE_TEETER_DANCE].danceMove == TRUE);
|
2024-02-19 12:36:21 +00:00
|
|
|
PLAYER(SPECIES_WOBBUFFET)
|
|
|
|
OPPONENT(SPECIES_ORICORIO) { Ability(ABILITY_DANCER); Item(ITEM_LUM_BERRY); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_TEETER_DANCE); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_TEETER_DANCE, player);
|
|
|
|
ABILITY_POPUP(opponent, ABILITY_DANCER);
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_TEETER_DANCE, opponent);
|
|
|
|
}
|
|
|
|
}
|
2024-03-12 10:51:37 +00:00
|
|
|
|
|
|
|
DOUBLE_BATTLE_TEST("Dancer can copy Teeter Dance and confuse both opposing targets")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
ASSUME(gMovesInfo[MOVE_TEETER_DANCE].danceMove == TRUE);
|
2024-04-25 09:13:57 +01:00
|
|
|
ASSUME(gItemsInfo[ITEM_LUM_BERRY].holdEffect == HOLD_EFFECT_CURE_STATUS);
|
2024-03-12 10:51:37 +00:00
|
|
|
PLAYER(SPECIES_WOBBUFFET)
|
2024-04-25 09:13:57 +01:00
|
|
|
PLAYER(SPECIES_WYNAUT) { Item(ITEM_LUM_BERRY); }
|
2024-03-12 10:51:37 +00:00
|
|
|
OPPONENT(SPECIES_ORICORIO) { Ability(ABILITY_DANCER); Item(ITEM_LUM_BERRY); }
|
|
|
|
OPPONENT(SPECIES_SLOWPOKE) { Ability(ABILITY_OWN_TEMPO); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(playerLeft, MOVE_TEETER_DANCE); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_TEETER_DANCE, playerLeft);
|
|
|
|
ABILITY_POPUP(opponentLeft, ABILITY_DANCER);
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_TEETER_DANCE, opponentLeft);
|
|
|
|
MESSAGE("Wobbuffet became confused!");
|
2024-04-25 09:13:57 +01:00
|
|
|
MESSAGE("Wynaut became confused!");
|
2024-03-12 10:51:37 +00:00
|
|
|
}
|
|
|
|
}
|