31b3337cda
Modified tests to use MoveHasMoveEffect
25 lines
781 B
C
25 lines
781 B
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
ASSUMPTIONS
|
|
{
|
|
ASSUME(MoveHasMoveEffect(MOVE_MORTAL_SPIN, MOVE_EFFECT_RAPIDSPIN, FALSE) == TRUE);
|
|
ASSUME(MoveHasMoveEffect(MOVE_MORTAL_SPIN, MOVE_EFFECT_POISON, FALSE) == TRUE);
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Mortal Spin blows away hazards and poisons foe")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(opponent, MOVE_STEALTH_ROCK); MOVE(player, MOVE_MORTAL_SPIN); }
|
|
} SCENE {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_STEALTH_ROCK, opponent);
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_MORTAL_SPIN, player);
|
|
MESSAGE("Wobbuffet blew away Stealth Rock!");
|
|
MESSAGE("Foe Wobbuffet was poisoned!");
|
|
STATUS_ICON(opponent, poison: TRUE);
|
|
}
|
|
}
|
|
|