2024-11-21 23:10:55 +00:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
2025-01-01 19:34:33 +00:00
|
|
|
ASSUME(GetMoveEffect(MOVE_ENDEAVOR) == EFFECT_ENDEAVOR);
|
2024-11-21 23:10:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
2024-12-04 14:31:28 +00:00
|
|
|
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
|