Added Throat Chop test
I don't know why it used to work through subs but now it won't
This commit is contained in:
parent
39773c0659
commit
9d68f4ab6f
1 changed files with 45 additions and 0 deletions
45
test/battle/move_effect/throat_chop.c
Normal file
45
test/battle/move_effect/throat_chop.c
Normal file
|
@ -0,0 +1,45 @@
|
|||
#include "global.h"
|
||||
#include "test/battle.h"
|
||||
|
||||
ASSUMPTIONS
|
||||
{
|
||||
ASSUME(MoveHasMoveEffect(MOVE_THROAT_CHOP, MOVE_EFFECT_THROAT_CHOP, FALSE) == 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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue