#include "global.h" #include "test/battle.h" ASSUMPTIONS { ASSUME(GetMoveEffect(MOVE_ENDEAVOR) == 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