pokeemerald/test/battle/ability/drizzle.c

25 lines
707 B
C
Raw Permalink Normal View History

2023-02-03 00:22:02 +01:00
#include "global.h"
#include "test/battle.h"
2023-02-03 00:22:02 +01:00
SINGLE_BATTLE_TEST("Drizzle summons rain", s16 damage)
{
u32 ability;
PARAMETRIZE { ability = ABILITY_DRIZZLE; }
PARAMETRIZE { ability = ABILITY_DAMP; }
GIVEN {
2023-06-23 11:38:18 +02:00
PLAYER(SPECIES_POLITOED) { Ability(ability); }
2023-02-03 00:22:02 +01:00
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);
}
}