2024-01-12 00:43:43 +00:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
2024-01-12 17:41:45 +00:00
|
|
|
ASSUME(MoveHasMoveEffectSelf(MOVE_CLANGING_SCALES, MOVE_EFFECT_DEF_MINUS_1) == TRUE);
|
2024-01-12 00:43:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DOUBLE_BATTLE_TEST("Clanging Scales lowers defense by one stage if it hits both targets")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET)
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(playerLeft, MOVE_CLANGING_SCALES); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_CLANGING_SCALES, playerLeft);
|
|
|
|
HP_BAR(opponentLeft);
|
|
|
|
NONE_OF {
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, playerLeft);
|
|
|
|
MESSAGE("Wobbuffet's Defense fell!");
|
|
|
|
}
|
|
|
|
HP_BAR(opponentRight);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, playerLeft);
|
|
|
|
MESSAGE("Wobbuffet's Defense fell!");
|
|
|
|
}
|
|
|
|
}
|