mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-09 05:05:03 +01:00
24 lines
684 B
C
24 lines
684 B
C
|
#include "global.h"
|
||
|
#include "test/battle.h"
|
||
|
|
||
|
SINGLE_BATTLE_TEST("Sleep prevents the battler from using a move")
|
||
|
{
|
||
|
u32 turns;
|
||
|
PARAMETRIZE { turns = 1; }
|
||
|
PARAMETRIZE { turns = 2; }
|
||
|
PARAMETRIZE { turns = 3; }
|
||
|
GIVEN {
|
||
|
PLAYER(SPECIES_WOBBUFFET) { Status1(STATUS1_SLEEP_TURN(turns)); }
|
||
|
OPPONENT(SPECIES_WOBBUFFET);
|
||
|
} WHEN {
|
||
|
for (i = 0; i < turns; i++)
|
||
|
TURN { MOVE(player, MOVE_CELEBRATE); }
|
||
|
} SCENE {
|
||
|
for (i = 0; i < turns - 1; i++)
|
||
|
MESSAGE("Wobbuffet is fast asleep.");
|
||
|
MESSAGE("Wobbuffet woke up!");
|
||
|
STATUS_ICON(player, none: TRUE);
|
||
|
MESSAGE("Wobbuffet used Celebrate!");
|
||
|
}
|
||
|
}
|