mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
25 lines
707 B
C
25 lines
707 B
C
#include "global.h"
|
|
#include "test_battle.h"
|
|
|
|
SINGLE_BATTLE_TEST("Drizzle summons rain", s16 damage)
|
|
{
|
|
u32 ability;
|
|
PARAMETRIZE { ability = ABILITY_DRIZZLE; }
|
|
PARAMETRIZE { ability = ABILITY_DAMP; }
|
|
|
|
GIVEN {
|
|
PLAYER(SPECIES_POLITOED) { Ability(ability); }
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_BUBBLE); }
|
|
} SCENE {
|
|
if (ability == ABILITY_DRIZZLE) {
|
|
ABILITY_POPUP(player, ABILITY_DRIZZLE);
|
|
MESSAGE("Politoed's Drizzle made it rain!");
|
|
}
|
|
HP_BAR(opponent, captureDamage: &results[i].damage);
|
|
} FINALLY {
|
|
EXPECT_MUL_EQ(results[1].damage, Q_4_12(1.5), results[0].damage);
|
|
}
|
|
}
|