sovereignx/test/battle/move_effect/endeavor.c

24 lines
700 B
C
Raw Normal View History

2024-11-21 23:10:55 +00:00
#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);
}
}
TO_DO_BATTLE_TEST("Endeavor does not change HP if the target has less HP than the user, but still plays the animation")
TO_DO_BATTLE_TEST("Endeavor doesn't ignore type immunity") // Ghost types