2023-07-26 16:17:33 +01:00
|
|
|
#include "global.h"
|
2023-08-12 21:31:44 +01:00
|
|
|
#include "test/battle.h"
|
2023-07-26 16:17:33 +01:00
|
|
|
|
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
2023-11-18 20:05:19 +00:00
|
|
|
ASSUME(gBattleMoves[MOVE_MORTAL_SPIN].additionalEffects[0].moveEffect == MOVE_EFFECT_RAPIDSPIN);
|
|
|
|
ASSUME(gBattleMoves[MOVE_MORTAL_SPIN].additionalEffects[1].moveEffect == MOVE_EFFECT_POISON);
|
2023-07-26 16:17:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|