5ec08ee98c
* Fixed test folders + Chud Chew test name fixes * Adjusted file names + merged Burn Up and Double Shock files * Added Spit Up/Swallow files that point to Stockpile's file * Multiple changes (see description) - Moved secondary effect files to their own folder. - Split hit_set_entry_hazards.c to separate files for Spikes/Stealth Rock. - Grouped Hex/Venoshock to the same file
45 lines
1.4 KiB
C
45 lines
1.4 KiB
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
ASSUMPTIONS
|
|
{
|
|
ASSUME(MoveHasAdditionalEffect(MOVE_THROAT_CHOP, MOVE_EFFECT_THROAT_CHOP) == TRUE);
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Throat Chop prevents the usage of sound moves")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_WOBBUFFET) { Speed(100); };
|
|
OPPONENT(SPECIES_WOBBUFFET) { Speed(50); };
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_THROAT_CHOP); MOVE(opponent, MOVE_HYPER_VOICE); }
|
|
TURN {}
|
|
} SCENE {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_THROAT_CHOP, player);
|
|
HP_BAR(opponent);
|
|
MESSAGE("Foe Wobbuffet can't use Hyper Voice due to Throat Chop!");
|
|
NONE_OF {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_HYPER_VOICE, opponent);
|
|
}
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Throat Chop won't work through a substitute")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_INCINEROAR) { Speed(100); };
|
|
OPPONENT(SPECIES_WOBBUFFET) { Speed(50); };
|
|
} WHEN {
|
|
TURN { MOVE(opponent, MOVE_SUBSTITUTE); }
|
|
TURN { MOVE(player, MOVE_THROAT_CHOP); MOVE(opponent, MOVE_HYPER_VOICE); }
|
|
TURN {}
|
|
} SCENE {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_SUBSTITUTE, opponent);
|
|
HP_BAR(opponent);
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_THROAT_CHOP, player);
|
|
NONE_OF {
|
|
MESSAGE("Foe Wobbuffet can't use Hyper Voice due to Throat Chop!");
|
|
}
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_HYPER_VOICE, opponent);
|
|
}
|
|
}
|