2023-12-15 10:17:35 +00:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Shaymin-Sky reverts to Shaymin-Land when frozen or frostbitten")
|
|
|
|
{
|
2024-05-14 12:28:10 +01:00
|
|
|
u32 move;
|
|
|
|
|
|
|
|
PARAMETRIZE { move = MOVE_POWDER_SNOW; }
|
|
|
|
PARAMETRIZE { move = MOVE_EMBER; }
|
|
|
|
PARAMETRIZE { move = MOVE_THUNDERSHOCK; }
|
|
|
|
PARAMETRIZE { move = MOVE_POISON_STING; }
|
|
|
|
PARAMETRIZE { move = MOVE_POISON_FANG; }
|
|
|
|
|
2024-02-26 05:21:38 +00:00
|
|
|
ASSUME(MoveHasAdditionalEffect(MOVE_POWDER_SNOW, MOVE_EFFECT_FREEZE_OR_FROSTBITE));
|
2024-05-14 12:28:10 +01:00
|
|
|
ASSUME(MoveHasAdditionalEffect(MOVE_EMBER, MOVE_EFFECT_BURN));
|
|
|
|
ASSUME(MoveHasAdditionalEffect(MOVE_THUNDERSHOCK, MOVE_EFFECT_PARALYSIS));
|
|
|
|
ASSUME(MoveHasAdditionalEffect(MOVE_POISON_STING, MOVE_EFFECT_POISON));
|
|
|
|
ASSUME(MoveHasAdditionalEffect(MOVE_POISON_FANG, MOVE_EFFECT_TOXIC));
|
2023-12-15 10:17:35 +00:00
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_SHAYMIN_SKY);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
2024-05-14 12:28:10 +01:00
|
|
|
TURN { MOVE(opponent, move); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, move, opponent);
|
|
|
|
if (move == MOVE_POWDER_SNOW) {
|
|
|
|
STATUS_ICON(player, freeze: TRUE);
|
|
|
|
NOT HP_BAR(player); // Regression caused by Mimikyu form change
|
|
|
|
MESSAGE("Shaymin transformed!");
|
|
|
|
} else {
|
|
|
|
NOT MESSAGE("Shaymin transformed!");
|
|
|
|
}
|
2023-12-15 10:17:35 +00:00
|
|
|
} THEN {
|
2024-05-14 12:28:10 +01:00
|
|
|
if (move == MOVE_POWDER_SNOW)
|
|
|
|
EXPECT_EQ(player->species, SPECIES_SHAYMIN_LAND);
|
|
|
|
else
|
|
|
|
EXPECT_EQ(player->species, SPECIES_SHAYMIN_SKY);
|
|
|
|
|
2023-12-15 10:17:35 +00:00
|
|
|
}
|
|
|
|
}
|