941e32a14f
# Conflicts: # src/battle_main.c # test/battle/move_effect/body_press.c
41 lines
1.5 KiB
C
41 lines
1.5 KiB
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
ASSUMPTIONS
|
|
{
|
|
ASSUME(gMovesInfo[MOVE_BODY_PRESS].effect == EFFECT_BODY_PRESS);
|
|
ASSUME(gMovesInfo[MOVE_BODY_PRESS].category == DAMAGE_CATEGORY_PHYSICAL);
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Body Press uses physical defense stat of target", s16 damage)
|
|
{
|
|
u32 move;
|
|
|
|
PARAMETRIZE { move = MOVE_DRILL_PECK; }
|
|
PARAMETRIZE { move = MOVE_BODY_PRESS; }
|
|
|
|
GIVEN {
|
|
ASSUME(gMovesInfo[MOVE_DRILL_PECK].power == gMovesInfo[MOVE_BODY_PRESS].power);
|
|
ASSUME(gMovesInfo[MOVE_CHARM].effect == EFFECT_ATTACK_DOWN_2);
|
|
ASSUME(gMovesInfo[MOVE_CHARM].effect == EFFECT_ATTACK_DOWN_2);
|
|
PLAYER(SPECIES_MEW);
|
|
OPPONENT(SPECIES_SHELLDER);
|
|
} WHEN {
|
|
TURN { MOVE(opponent, MOVE_CHARM); MOVE(player, move); }
|
|
} SCENE {
|
|
ANIMATION(ANIM_TYPE_MOVE, move, player);
|
|
HP_BAR(opponent, captureDamage: &results[i].damage);
|
|
} FINALLY {
|
|
EXPECT_MUL_EQ(results[0].damage, Q_4_12(2.0), results[1].damage);
|
|
}
|
|
}
|
|
|
|
TO_DO_BATTLE_TEST("Body Press's damage depends on the user's base Defense instead of its base Attack");
|
|
TO_DO_BATTLE_TEST("Body Press's damage depends on the user's Defense stat stages");
|
|
|
|
// Could be split into multiple tests or maybe to separate files based on the modifier?
|
|
TO_DO_BATTLE_TEST("Body Press's damage is influenced by all other Attack modifiers that are not stat stages");
|
|
TO_DO_BATTLE_TEST("Body Press's damage is NOT influenced by any other Defense besides stat stages");
|
|
|
|
// Unconfirmed by Bulbapedia:
|
|
// - Defeatist interaction
|