505b8b63eb
* Add Doodle * Doodle test * Oops * Update battle_util.c --------- Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
26 lines
785 B
C
26 lines
785 B
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
ASSUMPTIONS
|
|
{
|
|
ASSUME(gBattleMoves[MOVE_DOODLE].effect == EFFECT_DOODLE);
|
|
}
|
|
|
|
DOUBLE_BATTLE_TEST("Doodle gives the target's ability to user and ally")
|
|
{
|
|
GIVEN {
|
|
PLAYER(SPECIES_WYNAUT);
|
|
PLAYER(SPECIES_WYNAUT);
|
|
OPPONENT(SPECIES_WOBBUFFET) { Ability(ABILITY_STENCH); }
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(playerLeft, MOVE_DOODLE, target: opponentLeft); }
|
|
} SCENE {
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_DOODLE, playerLeft);
|
|
MESSAGE("Wynaut copied Foe Wobbuffet's Stench!");
|
|
MESSAGE("Wynaut copied Foe Wobbuffet's Stench!");
|
|
} THEN {
|
|
EXPECT(playerLeft->ability == ABILITY_STENCH);
|
|
EXPECT(playerRight->ability == ABILITY_STENCH);
|
|
}
|
|
}
|