mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
76d0d8a94e
* Fix battle message strings for stats
33 lines
1012 B
C
33 lines
1012 B
C
#include "global.h"
|
|
#include "test_battle.h"
|
|
|
|
ASSUMPTIONS
|
|
{
|
|
ASSUME(gBattleMoves[MOVE_GROWL].effect == EFFECT_ATTACK_DOWN);
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Growl lowers Attack", s16 damage)
|
|
{
|
|
bool32 lowerAttack;
|
|
PARAMETRIZE { lowerAttack = FALSE; }
|
|
PARAMETRIZE { lowerAttack = TRUE; }
|
|
GIVEN {
|
|
ASSUME(gBattleMoves[MOVE_TACKLE].split == SPLIT_PHYSICAL);
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
if (lowerAttack) TURN { MOVE(player, MOVE_GROWL); }
|
|
TURN { MOVE(opponent, MOVE_TACKLE); }
|
|
} SCENE {
|
|
if (lowerAttack) {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_GROWL, player);
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, opponent);
|
|
MESSAGE("Foe Wobbuffet's Attack fell!");
|
|
}
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_TACKLE, opponent);
|
|
HP_BAR(player, captureDamage: &results[i].damage);
|
|
} FINALLY {
|
|
EXPECT_MUL_EQ(results[1].damage, Q_4_12(1.5), results[0].damage);
|
|
}
|
|
}
|