pokeemerald/test/battle/ability/drizzle.c
2023-08-12 20:00:15 +01:00

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);
}
}