pokeemerald/test/battle/move_effect/triple_kick.c

36 lines
1.2 KiB
C
Raw Normal View History

2023-05-02 21:06:21 +02:00
#include "global.h"
#include "test/battle.h"
2023-05-02 21:06:21 +02:00
ASSUMPTIONS
{
2023-07-28 13:20:06 +02:00
ASSUME(gBattleMoves[MOVE_TRIPLE_KICK].effect == EFFECT_TRIPLE_KICK);
2023-05-02 21:06:21 +02:00
}
2023-04-26 12:12:41 +02:00
SINGLE_BATTLE_TEST("Triple Kick damage is increased by its base damage for each hit")
2023-05-02 21:06:21 +02:00
{
s16 firstHit;
s16 secondHit;
s16 thirdHit;
GIVEN {
PLAYER(SPECIES_WOBBUFFET);
OPPONENT(SPECIES_WOBBUFFET);
} WHEN {
TURN { MOVE(player, MOVE_TRIPLE_KICK); }
} SCENE {
ANIMATION(ANIM_TYPE_MOVE, MOVE_TRIPLE_KICK, player);
HP_BAR(opponent, captureDamage: &firstHit);
ANIMATION(ANIM_TYPE_MOVE, MOVE_TRIPLE_KICK, player);
HP_BAR(opponent, captureDamage: &secondHit);
ANIMATION(ANIM_TYPE_MOVE, MOVE_TRIPLE_KICK, player);
HP_BAR(opponent, captureDamage: &thirdHit);
2023-04-26 12:12:41 +02:00
} THEN {
EXPECT_MUL_EQ(firstHit, Q_4_12(2.0), secondHit);
EXPECT_MUL_EQ(firstHit, Q_4_12(3.0), thirdHit);
2023-05-02 21:06:21 +02:00
}
}
2023-07-28 13:20:06 +02:00
TO_DO_BATTLE_TEST("Accuracy for Triple Kick is checked independently for each hit")
TO_DO_BATTLE_TEST("Accuracy for Triple Kick is only checked for the first hit with Skill Link")
TO_DO_BATTLE_TEST("Accuracy for Triple Kick is only checked for the first hit with Loaded Dice")