mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
32 lines
891 B
C
32 lines
891 B
C
|
#include "global.h"
|
||
|
#include "test_battle.h"
|
||
|
|
||
|
ASSUMPTIONS
|
||
|
{
|
||
|
ASSUME(gBattleMoves[MOVE_TRIPLE_KICK].effect & EFFECT_TRIPLE_KICK);
|
||
|
}
|
||
|
|
||
|
SINGLE_BATTLE_TEST("Triple Kick damage is increaased by its base damage for each hit")
|
||
|
{
|
||
|
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);
|
||
|
} FINALLY {
|
||
|
EXPECT_EQ(secondHit, firstHit * 2);
|
||
|
EXPECT_EQ(thirdHit, firstHit * 3);
|
||
|
}
|
||
|
}
|