mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 19:54:21 +01:00
20 lines
570 B
C
20 lines
570 B
C
|
#include "global.h"
|
||
|
#include "test/battle.h"
|
||
|
|
||
|
SINGLE_BATTLE_TEST("Aegislash reverts to Shield Form upon fainting")
|
||
|
{
|
||
|
GIVEN {
|
||
|
ASSUME(P_GEN_6_POKEMON == TRUE);
|
||
|
PLAYER(SPECIES_AEGISLASH) { HP(1); }
|
||
|
PLAYER(SPECIES_WOBBUFFET);
|
||
|
OPPONENT(SPECIES_WOBBUFFET);
|
||
|
} WHEN {
|
||
|
TURN { MOVE(opponent, MOVE_GUST); SEND_OUT(player, 1); }
|
||
|
} SCENE {
|
||
|
MESSAGE("Foe Wobbuffet used Gust!");
|
||
|
MESSAGE("Aegislash fainted!");
|
||
|
} THEN {
|
||
|
EXPECT_EQ(GetMonData(&PLAYER_PARTY[0], MON_DATA_SPECIES), SPECIES_AEGISLASH);
|
||
|
}
|
||
|
}
|