2022-12-24 06:13:42 +01:00
|
|
|
#include "global.h"
|
|
|
|
#include "test_battle.h"
|
|
|
|
|
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
|
|
|
ASSUME(gBattleMoves[MOVE_MEDITATE].effect == EFFECT_ATTACK_UP);
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Meditate raises Attack", s16 damage)
|
|
|
|
{
|
|
|
|
bool32 raiseAttack;
|
|
|
|
PARAMETRIZE { raiseAttack = FALSE; }
|
|
|
|
PARAMETRIZE { raiseAttack = TRUE; }
|
|
|
|
GIVEN {
|
|
|
|
ASSUME(gBattleMoves[MOVE_TACKLE].split == SPLIT_PHYSICAL);
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
if (raiseAttack) TURN { MOVE(player, MOVE_MEDITATE); }
|
|
|
|
TURN { MOVE(player, MOVE_TACKLE); }
|
|
|
|
} SCENE {
|
|
|
|
if (raiseAttack) {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_MEDITATE, player);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, player);
|
2023-04-18 23:02:51 +02:00
|
|
|
MESSAGE("Wobbuffet's Attack rose!");
|
2022-12-24 06:13:42 +01:00
|
|
|
}
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_TACKLE, player);
|
|
|
|
HP_BAR(opponent, captureDamage: &results[i].damage);
|
|
|
|
} FINALLY {
|
|
|
|
EXPECT_MUL_EQ(results[0].damage, Q_4_12(1.5), results[1].damage);
|
|
|
|
}
|
|
|
|
}
|