21 lines
666 B
C
21 lines
666 B
C
|
#include "global.h"
|
||
|
#include "test/battle.h"
|
||
|
|
||
|
SINGLE_BATTLE_TEST("Emergency Exit switches out when taking 50% max-hp damage")
|
||
|
{
|
||
|
GIVEN {
|
||
|
PLAYER(SPECIES_WOBBUFFET) { Attack(1314); }; // will deal exactly 132 damage, putting GOLISOPOD just under half hp
|
||
|
OPPONENT(SPECIES_GOLISOPOD) { Ability(ABILITY_EMERGENCY_EXIT); MaxHP(263); HP(263); };
|
||
|
OPPONENT(SPECIES_WOBBUFFET);
|
||
|
} WHEN {
|
||
|
TURN {
|
||
|
MOVE(player, MOVE_POUND);
|
||
|
SEND_OUT(opponent, 1);
|
||
|
}
|
||
|
} SCENE {
|
||
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_POUND, player);
|
||
|
HP_BAR(opponent);
|
||
|
ABILITY_POPUP(opponent, ABILITY_EMERGENCY_EXIT);
|
||
|
}
|
||
|
}
|