2023-07-19 13:25:20 +02:00
|
|
|
#include "global.h"
|
2023-08-12 22:31:44 +02:00
|
|
|
#include "test/battle.h"
|
2023-07-19 13:25:20 +02:00
|
|
|
|
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
|
|
|
ASSUME(gBattleMoves[MOVE_MAKE_IT_RAIN].effect == EFFECT_MAKE_IT_RAIN);
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Make It Rain lowers special attack by one stage")
|
|
|
|
{
|
|
|
|
s16 damage[2];
|
|
|
|
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_MAKE_IT_RAIN); }
|
|
|
|
TURN { MOVE(player, MOVE_MAKE_IT_RAIN); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_MAKE_IT_RAIN, player);
|
|
|
|
HP_BAR(opponent, captureDamage: &damage[0]);
|
|
|
|
MESSAGE("Coins scattered everywhere!");
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, player);
|
|
|
|
MESSAGE("Wobbuffet's Sp. Atk fell!");
|
|
|
|
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_MAKE_IT_RAIN, player);
|
|
|
|
HP_BAR(opponent, captureDamage: &damage[1]);
|
|
|
|
MESSAGE("Coins scattered everywhere!");
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, player);
|
|
|
|
MESSAGE("Wobbuffet's Sp. Atk fell!");
|
|
|
|
} THEN {
|
|
|
|
EXPECT_MUL_EQ(damage[0], Q_4_12(0.66), damage[1]);
|
|
|
|
}
|
|
|
|
}
|