2024-01-28 18:15:53 +00:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
2024-01-29 11:51:32 +00:00
|
|
|
ASSUME(gMovesInfo[MOVE_PURSUIT].effect == EFFECT_PURSUIT);
|
2024-01-28 18:15:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Pursuited mon correctly switches out after it got hit and activated ability Tangling Hair")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_DUGTRIO) { Ability(ABILITY_TANGLING_HAIR); }
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WYNAUT);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { SWITCH(player, 1); MOVE(opponent, MOVE_PURSUIT); }
|
|
|
|
} SCENE {
|
|
|
|
MESSAGE("Dugtrio, that's enough! Come back!");
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_PURSUIT, opponent);
|
|
|
|
ABILITY_POPUP(player, ABILITY_TANGLING_HAIR);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, opponent);
|
|
|
|
MESSAGE("Foe Wynaut's Speed fell!");
|
|
|
|
MESSAGE("Go! Wobbuffet!");
|
|
|
|
}
|
|
|
|
}
|