2023-08-12 21:00:15 +02:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Sleep prevents the battler from using a move")
|
|
|
|
{
|
2023-10-12 12:14:07 +02:00
|
|
|
u32 turns, j;
|
2023-08-12 21:00:15 +02:00
|
|
|
PARAMETRIZE { turns = 1; }
|
|
|
|
PARAMETRIZE { turns = 2; }
|
|
|
|
PARAMETRIZE { turns = 3; }
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET) { Status1(STATUS1_SLEEP_TURN(turns)); }
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
2023-10-12 12:14:07 +02:00
|
|
|
for (j = 0; j < turns; j++)
|
2023-08-12 21:00:15 +02:00
|
|
|
TURN { MOVE(player, MOVE_CELEBRATE); }
|
|
|
|
} SCENE {
|
2023-10-12 12:14:07 +02:00
|
|
|
for (j = 0; j < turns - 1; j++)
|
2023-08-12 21:00:15 +02:00
|
|
|
MESSAGE("Wobbuffet is fast asleep.");
|
|
|
|
MESSAGE("Wobbuffet woke up!");
|
|
|
|
STATUS_ICON(player, none: TRUE);
|
|
|
|
MESSAGE("Wobbuffet used Celebrate!");
|
|
|
|
}
|
|
|
|
}
|