0a8284ce9f
* Added missing Move Effect TODO tests - Volume B * Apply suggestions from code review Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com> * Removed unused bulldoze effect file * Removed individual tests for Baton Pass + Status1 in favor of the existing single test --------- Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
ASSUMPTIONS
|
|
{
|
|
ASSUME(gMovesInfo[MOVE_BIDE].effect == EFFECT_BIDE);
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Bide deals twice the taken damage over two turns")
|
|
{
|
|
s16 damage1;
|
|
s16 damage2;
|
|
s16 bideDamage;
|
|
GIVEN {
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_BIDE); MOVE(opponent, MOVE_TACKLE); }
|
|
TURN { SKIP_TURN(player); MOVE(opponent, MOVE_TACKLE); }
|
|
TURN { SKIP_TURN(player); }
|
|
} SCENE {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_BIDE, player);
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_TACKLE, opponent);
|
|
HP_BAR(player, captureDamage: &damage1);
|
|
MESSAGE("Wobbuffet is storing energy!");
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_TACKLE, opponent);
|
|
HP_BAR(player, captureDamage: &damage2);
|
|
MESSAGE("Wobbuffet unleashed energy!");
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_BIDE, player);
|
|
HP_BAR(opponent, captureDamage: &bideDamage);
|
|
} THEN {
|
|
EXPECT_EQ(bideDamage, 2 * (damage1 + damage2));
|
|
}
|
|
}
|
|
|
|
TO_DO_BATTLE_TEST("Bide hits the last Pokémon that attacked the user, even allies");
|
|
TO_DO_BATTLE_TEST("Bide has +1 priority if called via a different move"); // Gen 5 onwards
|