2022-12-24 06:13:42 +01:00
|
|
|
#include "global.h"
|
2023-08-12 21:00:15 +02:00
|
|
|
#include "test/battle.h"
|
2022-12-24 06:13:42 +01:00
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Blaze boosts Fire-type moves in a pinch", s16 damage)
|
|
|
|
{
|
|
|
|
u16 hp;
|
|
|
|
PARAMETRIZE { hp = 99; }
|
|
|
|
PARAMETRIZE { hp = 33; }
|
|
|
|
GIVEN {
|
|
|
|
ASSUME(gBattleMoves[MOVE_EMBER].type == TYPE_FIRE);
|
|
|
|
PLAYER(SPECIES_CHARMANDER) { Ability(ABILITY_BLAZE); MaxHP(99); HP(hp); }
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_EMBER); }
|
|
|
|
} SCENE {
|
|
|
|
HP_BAR(opponent, captureDamage: &results[i].damage);
|
|
|
|
} FINALLY {
|
2023-02-19 15:48:51 +01:00
|
|
|
EXPECT_MUL_EQ(results[0].damage, Q_4_12(1.5), results[1].damage);
|
2022-12-24 06:13:42 +01:00
|
|
|
}
|
|
|
|
}
|