22 lines
506 B
C
22 lines
506 B
C
|
#include "global.h"
|
||
|
#include "test/battle.h"
|
||
|
|
||
|
ASSUMPTIONS
|
||
|
{
|
||
|
ASSUME(gMovesInfo[MOVE_ENDEAVOR].effect == EFFECT_ENDEAVOR);
|
||
|
}
|
||
|
|
||
|
SINGLE_BATTLE_TEST("Endeavor causes the target's HP to equal the user's current HP")
|
||
|
{
|
||
|
GIVEN {
|
||
|
PLAYER(SPECIES_WOBBUFFET) { HP(1); }
|
||
|
OPPONENT(SPECIES_WOBBUFFET);
|
||
|
} WHEN {
|
||
|
TURN { MOVE(player, MOVE_ENDEAVOR); }
|
||
|
} SCENE {
|
||
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_ENDEAVOR, player);
|
||
|
} THEN {
|
||
|
EXPECT_EQ(player->hp, opponent->hp);
|
||
|
}
|
||
|
}
|