67 lines
2 KiB
C
67 lines
2 KiB
C
|
#include "global.h"
|
||
|
#include "test/battle.h"
|
||
|
|
||
|
ASSUMPTIONS
|
||
|
{
|
||
|
ASSUME(gBattleMoves[MOVE_MATCHA_GOTCHA].effect == EFFECT_MATCHA_GOTCHA);
|
||
|
}
|
||
|
|
||
|
SINGLE_BATTLE_TEST("Matcha Gotcha inflicts burn 20% of the time")
|
||
|
{
|
||
|
PASSES_RANDOMLY(20, 100, RNG_SECONDARY_EFFECT);
|
||
|
GIVEN {
|
||
|
PLAYER(SPECIES_WOBBUFFET);
|
||
|
OPPONENT(SPECIES_WOBBUFFET);
|
||
|
} WHEN {
|
||
|
TURN { MOVE(player, MOVE_MATCHA_GOTCHA); }
|
||
|
} SCENE {
|
||
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_MATCHA_GOTCHA, player);
|
||
|
HP_BAR(opponent);
|
||
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, opponent);
|
||
|
STATUS_ICON(opponent, burn: TRUE);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
DOUBLE_BATTLE_TEST("Matcha Gatcha can burn both targets")
|
||
|
{
|
||
|
GIVEN {
|
||
|
PLAYER(SPECIES_WOBBUFFET) { HP(1); }
|
||
|
PLAYER(SPECIES_WOBBUFFET);
|
||
|
OPPONENT(SPECIES_WOBBUFFET);
|
||
|
OPPONENT(SPECIES_WOBBUFFET);
|
||
|
} WHEN {
|
||
|
TURN { MOVE(playerLeft, MOVE_MATCHA_GOTCHA); }
|
||
|
} SCENE {
|
||
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_MATCHA_GOTCHA, playerLeft);
|
||
|
HP_BAR(opponentLeft);
|
||
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, opponentLeft);
|
||
|
STATUS_ICON(opponentLeft, burn: TRUE);
|
||
|
HP_BAR(opponentRight);
|
||
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_BRN, opponentRight);
|
||
|
STATUS_ICON(opponentRight, burn: TRUE);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
DOUBLE_BATTLE_TEST("Matcha Gatcha recovers 50% of the damage dealt from both targets")
|
||
|
{
|
||
|
s16 damageLeft;
|
||
|
s16 damageRight;
|
||
|
s16 healedLeft;
|
||
|
s16 healedRight;
|
||
|
|
||
|
GIVEN {
|
||
|
PLAYER(SPECIES_WOBBUFFET) { HP(1); }
|
||
|
PLAYER(SPECIES_WOBBUFFET);
|
||
|
OPPONENT(SPECIES_WOBBUFFET);
|
||
|
OPPONENT(SPECIES_WOBBUFFET);
|
||
|
} WHEN {
|
||
|
TURN { MOVE(playerLeft, MOVE_MATCHA_GOTCHA); }
|
||
|
} SCENE {
|
||
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_MATCHA_GOTCHA, playerLeft);
|
||
|
HP_BAR(opponentLeft, captureDamage: &damageLeft);
|
||
|
HP_BAR(playerLeft, captureDamage: &healedLeft);
|
||
|
HP_BAR(opponentRight, captureDamage: &damageRight);
|
||
|
HP_BAR(playerLeft, captureDamage: &healedRight);
|
||
|
}
|
||
|
}
|