2023-03-08 22:11:28 +01:00
|
|
|
#include "global.h"
|
|
|
|
#include "test_battle.h"
|
|
|
|
|
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
|
|
|
ASSUME(gBattleMoves[MOVE_ASSIST].effect == EFFECT_ASSIST);
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Assist fails if there are no valid moves to choose from")
|
|
|
|
{
|
|
|
|
GIVEN {
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_WOBBUFFET) { Moves(MOVE_ASSIST, MOVE_CELEBRATE, MOVE_METRONOME, MOVE_ME_FIRST); }
|
|
|
|
PLAYER(SPECIES_WOBBUFFET) { Moves(MOVE_ASSIST, MOVE_ENDURE, MOVE_DRAGON_TAIL, MOVE_SPOTLIGHT); }
|
2023-03-08 22:11:28 +01:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_ASSIST); }
|
|
|
|
} SCENE {
|
|
|
|
MESSAGE("Wobbuffet used Assist!");
|
|
|
|
NOT ANIMATION(ANIM_TYPE_MOVE, MOVE_ASSIST, player);
|
|
|
|
MESSAGE("But it failed!");
|
|
|
|
}
|
|
|
|
}
|