mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
21 lines
618 B
C
21 lines
618 B
C
|
#include "global.h"
|
||
|
#include "test_battle.h"
|
||
|
|
||
|
SINGLE_BATTLE_TEST("Torrent boosts Water-type moves in a pinch", s16 damage)
|
||
|
{
|
||
|
u16 hp;
|
||
|
PARAMETRIZE { hp = 99; }
|
||
|
PARAMETRIZE { hp = 33; }
|
||
|
GIVEN {
|
||
|
ASSUME(gBattleMoves[MOVE_BUBBLE].type == TYPE_WATER);
|
||
|
PLAYER(SPECIES_SQUIRTLE) { Ability(ABILITY_TORRENT); MaxHP(99); HP(hp); }
|
||
|
OPPONENT(SPECIES_WOBBUFFET);
|
||
|
} WHEN {
|
||
|
TURN { MOVE(player, MOVE_BUBBLE); }
|
||
|
} SCENE {
|
||
|
HP_BAR(opponent, captureDamage: &results[i].damage);
|
||
|
} FINALLY {
|
||
|
EXPECT_MUL_EQ(results[0].damage, Q_4_12(1.5), results[1].damage);
|
||
|
}
|
||
|
}
|