2024-02-11 09:40:30 +00:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
2024-02-16 14:30:01 +00:00
|
|
|
ASSUME(gMovesInfo[MOVE_UPROAR].effect == EFFECT_UPROAR);
|
2024-02-11 09:40:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DOUBLE_BATTLE_TEST("Uproar status causes sleeping pokemon to wake up during an attack")
|
|
|
|
{
|
2024-10-11 22:47:46 +01:00
|
|
|
PASSES_RANDOMLY(1, 2, RNG_RANDOM_TARGET); // test fails if we target soundproof mon
|
2024-02-11 09:40:30 +00:00
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
PLAYER(SPECIES_WOBBUFFET) { Status1(STATUS1_SLEEP); }
|
|
|
|
OPPONENT(SPECIES_VOLTORB) { Ability(ABILITY_SOUNDPROOF); Status1(STATUS1_SLEEP); }
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET) { Status1(STATUS1_SLEEP); }
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(playerLeft, MOVE_UPROAR); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_UPROAR, playerLeft);
|
|
|
|
HP_BAR(opponentRight);
|
2024-10-21 18:52:45 +01:00
|
|
|
MESSAGE("The uproar woke Wobbuffet!");
|
2024-02-11 09:40:30 +00:00
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_CELEBRATE, playerRight);
|
2024-10-21 18:52:45 +01:00
|
|
|
MESSAGE("The uproar woke the opposing Voltorb!");
|
2024-02-11 09:40:30 +00:00
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_CELEBRATE, opponentLeft);
|
2024-10-21 18:52:45 +01:00
|
|
|
MESSAGE("The uproar woke the opposing Wobbuffet!");
|
2024-02-11 09:40:30 +00:00
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_CELEBRATE, opponentRight);
|
|
|
|
}
|
|
|
|
}
|