mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
22 lines
508 B
C
22 lines
508 B
C
|
#include "global.h"
|
||
|
#include "test_battle.h"
|
||
|
|
||
|
ASSUMPTIONS
|
||
|
{
|
||
|
ASSUME(gBattleMoves[MOVE_HYPNOSIS].effect == EFFECT_SLEEP);
|
||
|
}
|
||
|
|
||
|
SINGLE_BATTLE_TEST("Hypnosis inflicts sleep")
|
||
|
{
|
||
|
GIVEN {
|
||
|
PLAYER(SPECIES_WOBBUFFET);
|
||
|
OPPONENT(SPECIES_WOBBUFFET);
|
||
|
} WHEN {
|
||
|
TURN { MOVE(player, MOVE_HYPNOSIS); }
|
||
|
} SCENE {
|
||
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_HYPNOSIS, player);
|
||
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_SLP, opponent);
|
||
|
STATUS_ICON(opponent, sleep: TRUE);
|
||
|
}
|
||
|
}
|