2023-05-05 02:01:03 +02:00
|
|
|
#include "global.h"
|
|
|
|
#include "test_battle.h"
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Forecast transforms Castform in weather from an opponent's move")
|
|
|
|
{
|
|
|
|
u32 move;
|
|
|
|
PARAMETRIZE { move = MOVE_SUNNY_DAY; }
|
|
|
|
PARAMETRIZE { move = MOVE_RAIN_DANCE; }
|
|
|
|
PARAMETRIZE { move = MOVE_HAIL; }
|
2023-05-17 01:24:25 +02:00
|
|
|
PARAMETRIZE { move = MOVE_SNOWSCAPE; }
|
2023-05-05 02:01:03 +02:00
|
|
|
GIVEN {
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
2023-05-05 02:01:03 +02:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(opponent, move); }
|
|
|
|
} SCENE {
|
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
2023-06-30 09:58:07 +02:00
|
|
|
} THEN {
|
|
|
|
switch (move)
|
|
|
|
{
|
|
|
|
case MOVE_SUNNY_DAY:
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM_SUNNY);
|
|
|
|
break;
|
|
|
|
case MOVE_RAIN_DANCE:
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM_RAINY);
|
|
|
|
break;
|
|
|
|
case MOVE_HAIL:
|
|
|
|
case MOVE_SNOWSCAPE:
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM_SNOWY);
|
|
|
|
break;
|
|
|
|
}
|
2023-05-05 02:01:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Forecast transforms Castform in weather from its own move")
|
|
|
|
{
|
|
|
|
u32 move;
|
|
|
|
PARAMETRIZE { move = MOVE_SUNNY_DAY; }
|
|
|
|
PARAMETRIZE { move = MOVE_RAIN_DANCE; }
|
|
|
|
PARAMETRIZE { move = MOVE_HAIL; }
|
2023-05-17 01:24:25 +02:00
|
|
|
PARAMETRIZE { move = MOVE_SNOWSCAPE; }
|
2023-05-05 02:01:03 +02:00
|
|
|
GIVEN {
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
2023-05-05 02:01:03 +02:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, move); }
|
|
|
|
} SCENE {
|
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
2023-06-30 09:58:07 +02:00
|
|
|
} THEN {
|
|
|
|
switch (move)
|
|
|
|
{
|
|
|
|
case MOVE_SUNNY_DAY:
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM_SUNNY);
|
|
|
|
break;
|
|
|
|
case MOVE_RAIN_DANCE:
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM_RAINY);
|
|
|
|
break;
|
|
|
|
case MOVE_HAIL:
|
|
|
|
case MOVE_SNOWSCAPE:
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM_SNOWY);
|
|
|
|
break;
|
|
|
|
}
|
2023-05-05 02:01:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
DOUBLE_BATTLE_TEST("Forecast transforms Castform in weather from a partner's move")
|
|
|
|
{
|
|
|
|
u32 move;
|
|
|
|
PARAMETRIZE { move = MOVE_SUNNY_DAY; }
|
|
|
|
PARAMETRIZE { move = MOVE_RAIN_DANCE; }
|
|
|
|
PARAMETRIZE { move = MOVE_HAIL; }
|
2023-05-17 01:24:25 +02:00
|
|
|
PARAMETRIZE { move = MOVE_SNOWSCAPE; }
|
2023-05-05 02:01:03 +02:00
|
|
|
GIVEN {
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
2023-05-05 02:01:03 +02:00
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(playerRight, move); }
|
|
|
|
} SCENE {
|
|
|
|
ABILITY_POPUP(playerLeft, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, playerLeft);
|
|
|
|
MESSAGE("Castform transformed!");
|
2023-06-30 09:58:07 +02:00
|
|
|
} THEN {
|
|
|
|
switch (move)
|
|
|
|
{
|
|
|
|
case MOVE_SUNNY_DAY:
|
|
|
|
EXPECT_EQ(playerLeft->species, SPECIES_CASTFORM_SUNNY);
|
|
|
|
break;
|
|
|
|
case MOVE_RAIN_DANCE:
|
|
|
|
EXPECT_EQ(playerLeft->species, SPECIES_CASTFORM_RAINY);
|
|
|
|
break;
|
|
|
|
case MOVE_HAIL:
|
|
|
|
case MOVE_SNOWSCAPE:
|
|
|
|
EXPECT_EQ(playerLeft->species, SPECIES_CASTFORM_SNOWY);
|
|
|
|
break;
|
|
|
|
}
|
2023-05-05 02:01:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
DOUBLE_BATTLE_TEST("Forecast transforms all Castforms present in weather")
|
|
|
|
{
|
|
|
|
u32 move;
|
|
|
|
PARAMETRIZE { move = MOVE_SUNNY_DAY; }
|
|
|
|
PARAMETRIZE { move = MOVE_RAIN_DANCE; }
|
|
|
|
PARAMETRIZE { move = MOVE_HAIL; }
|
2023-05-17 01:24:25 +02:00
|
|
|
PARAMETRIZE { move = MOVE_SNOWSCAPE; }
|
2023-05-05 02:01:03 +02:00
|
|
|
GIVEN {
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
|
|
|
PLAYER(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
|
|
|
OPPONENT(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
|
|
|
OPPONENT(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
2023-05-05 02:01:03 +02:00
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(playerRight, move); }
|
|
|
|
} SCENE {
|
|
|
|
ABILITY_POPUP(playerLeft, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, playerLeft);
|
|
|
|
MESSAGE("Castform transformed!");
|
|
|
|
ABILITY_POPUP(opponentLeft, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, opponentLeft);
|
|
|
|
MESSAGE("Foe Castform transformed!");
|
|
|
|
ABILITY_POPUP(playerRight, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, playerRight);
|
|
|
|
MESSAGE("Castform transformed!");
|
|
|
|
ABILITY_POPUP(opponentRight, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, opponentRight);
|
|
|
|
MESSAGE("Foe Castform transformed!");
|
2023-06-30 09:58:07 +02:00
|
|
|
} THEN {
|
|
|
|
switch (move)
|
|
|
|
{
|
|
|
|
case MOVE_SUNNY_DAY:
|
|
|
|
EXPECT_EQ(playerLeft->species, SPECIES_CASTFORM_SUNNY);
|
|
|
|
EXPECT_EQ(playerRight->species, SPECIES_CASTFORM_SUNNY);
|
|
|
|
EXPECT_EQ(opponentLeft->species, SPECIES_CASTFORM_SUNNY);
|
|
|
|
EXPECT_EQ(opponentRight->species, SPECIES_CASTFORM_SUNNY);
|
|
|
|
break;
|
|
|
|
case MOVE_RAIN_DANCE:
|
|
|
|
EXPECT_EQ(playerLeft->species, SPECIES_CASTFORM_RAINY);
|
|
|
|
EXPECT_EQ(playerRight->species, SPECIES_CASTFORM_RAINY);
|
|
|
|
EXPECT_EQ(opponentLeft->species, SPECIES_CASTFORM_RAINY);
|
|
|
|
EXPECT_EQ(opponentRight->species, SPECIES_CASTFORM_RAINY);
|
|
|
|
break;
|
|
|
|
case MOVE_HAIL:
|
|
|
|
case MOVE_SNOWSCAPE:
|
|
|
|
EXPECT_EQ(playerLeft->species, SPECIES_CASTFORM_SNOWY);
|
|
|
|
EXPECT_EQ(playerRight->species, SPECIES_CASTFORM_SNOWY);
|
|
|
|
EXPECT_EQ(opponentLeft->species, SPECIES_CASTFORM_SNOWY);
|
|
|
|
EXPECT_EQ(opponentRight->species, SPECIES_CASTFORM_SNOWY);
|
|
|
|
break;
|
|
|
|
}
|
2023-05-05 02:01:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Forecast transforms Castform in weather from an ability")
|
|
|
|
{
|
2023-05-17 01:24:25 +02:00
|
|
|
u32 species, ability;
|
|
|
|
PARAMETRIZE { species = SPECIES_KYOGRE; ability = ABILITY_DRIZZLE; }
|
|
|
|
PARAMETRIZE { species = SPECIES_GROUDON; ability = ABILITY_DROUGHT; }
|
|
|
|
PARAMETRIZE { species = SPECIES_ABOMASNOW; ability = ABILITY_SNOW_WARNING; }
|
2023-05-05 02:01:03 +02:00
|
|
|
GIVEN {
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
2023-05-05 02:01:03 +02:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
2023-06-23 11:38:18 +02:00
|
|
|
OPPONENT(species) { Ability(ability); }
|
2023-05-05 02:01:03 +02:00
|
|
|
} WHEN {
|
|
|
|
TURN { SWITCH(opponent, 1); }
|
|
|
|
} SCENE {
|
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
2023-06-30 09:58:07 +02:00
|
|
|
} THEN {
|
|
|
|
switch (ability)
|
|
|
|
{
|
|
|
|
case ABILITY_DROUGHT:
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM_SUNNY);
|
|
|
|
break;
|
|
|
|
case ABILITY_DRIZZLE:
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM_RAINY);
|
|
|
|
break;
|
|
|
|
case ABILITY_SNOW_WARNING:
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM_SNOWY);
|
|
|
|
break;
|
|
|
|
}
|
2023-05-05 02:01:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Forecast transforms Castform in primal weather")
|
|
|
|
{
|
2023-05-17 01:24:25 +02:00
|
|
|
u32 species, item, ability;
|
|
|
|
PARAMETRIZE { species = SPECIES_KYOGRE; ability = ABILITY_PRIMORDIAL_SEA; item = ITEM_BLUE_ORB; }
|
|
|
|
PARAMETRIZE { species = SPECIES_GROUDON; ability = ABILITY_DESOLATE_LAND; item = ITEM_RED_ORB; }
|
2023-05-05 02:01:03 +02:00
|
|
|
GIVEN {
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
2023-05-05 02:01:03 +02:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
2023-06-23 11:38:18 +02:00
|
|
|
OPPONENT(species) { Item(item); }
|
2023-05-05 02:01:03 +02:00
|
|
|
} WHEN {
|
|
|
|
TURN { SWITCH(opponent, 1); }
|
|
|
|
} SCENE {
|
2023-05-17 01:24:25 +02:00
|
|
|
ABILITY_POPUP(opponent, ability);
|
2023-05-05 02:01:03 +02:00
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
2023-06-30 09:58:07 +02:00
|
|
|
} THEN {
|
|
|
|
switch (ability)
|
|
|
|
{
|
|
|
|
case ABILITY_DESOLATE_LAND:
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM_SUNNY);
|
|
|
|
break;
|
|
|
|
case ABILITY_PRIMORDIAL_SEA:
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM_RAINY);
|
|
|
|
break;
|
|
|
|
}
|
2023-05-05 02:01:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Forecast transforms Castform back to normal when weather expires")
|
|
|
|
{
|
|
|
|
GIVEN {
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
2023-05-05 02:01:03 +02:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_RAIN_DANCE); }
|
2023-06-23 11:38:18 +02:00
|
|
|
TURN {}
|
|
|
|
TURN {}
|
|
|
|
TURN {}
|
|
|
|
TURN {}
|
|
|
|
TURN {}
|
2023-05-05 02:01:03 +02:00
|
|
|
} SCENE {
|
|
|
|
// transforms
|
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
|
|
|
// back to normal
|
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
2023-06-30 09:58:07 +02:00
|
|
|
} THEN {
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM);
|
2023-05-05 02:01:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Forecast transforms Castform back to normal when Sandstorm is active")
|
|
|
|
{
|
|
|
|
GIVEN {
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
2023-05-05 02:01:03 +02:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_RAIN_DANCE); }
|
|
|
|
TURN { MOVE(player, MOVE_SANDSTORM); }
|
|
|
|
} SCENE {
|
|
|
|
// transforms
|
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
|
|
|
// back to normal
|
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
2023-06-30 09:58:07 +02:00
|
|
|
} THEN {
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM);
|
2023-05-05 02:01:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-17 01:24:25 +02:00
|
|
|
SINGLE_BATTLE_TEST("Forecast transforms Castform back to normal under Air Lock")
|
|
|
|
{
|
2023-06-30 09:58:07 +02:00
|
|
|
KNOWN_FAILING;
|
2023-05-17 01:24:25 +02:00
|
|
|
GIVEN {
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
2023-05-17 01:24:25 +02:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
OPPONENT(SPECIES_RAYQUAZA);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_RAIN_DANCE); }
|
|
|
|
TURN { SWITCH(opponent, 1); }
|
|
|
|
} SCENE {
|
|
|
|
// transforms
|
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
|
|
|
// back to normal
|
|
|
|
ABILITY_POPUP(opponent, ABILITY_AIR_LOCK);
|
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
2023-06-30 09:58:07 +02:00
|
|
|
} THEN {
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM);
|
2023-05-17 01:24:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-05 02:01:03 +02:00
|
|
|
SINGLE_BATTLE_TEST("Forecast transforms Castform on switch-in")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET);
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
2023-05-05 02:01:03 +02:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_RAIN_DANCE); }
|
|
|
|
TURN { SWITCH(player, 1); }
|
|
|
|
} SCENE {
|
|
|
|
// turn 1
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_RAIN_DANCE, player);
|
|
|
|
// turn 2
|
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
2023-06-30 09:58:07 +02:00
|
|
|
} THEN {
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM_RAINY);
|
2023-05-05 02:01:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Forecast transforms Castform when weather changes")
|
|
|
|
{
|
|
|
|
GIVEN {
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
2023-05-05 02:01:03 +02:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_RAIN_DANCE); }
|
|
|
|
TURN { MOVE(player, MOVE_SUNNY_DAY); }
|
|
|
|
} SCENE {
|
|
|
|
// transforms
|
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
|
|
|
// transforms again
|
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
2023-06-30 09:58:07 +02:00
|
|
|
} THEN {
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM_SUNNY);
|
2023-05-05 02:01:03 +02:00
|
|
|
}
|
|
|
|
}
|
2023-05-17 01:24:25 +02:00
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Forecast transforms Castform back to normal when its ability is suppressed")
|
|
|
|
{
|
|
|
|
GIVEN {
|
2023-05-24 01:10:26 +02:00
|
|
|
ASSUME(B_WEATHER_FORMS >= GEN_5);
|
2023-06-23 11:38:18 +02:00
|
|
|
PLAYER(SPECIES_CASTFORM) { Ability(ABILITY_FORECAST); }
|
2023-05-17 01:24:25 +02:00
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(opponent, MOVE_SUNNY_DAY); }
|
|
|
|
TURN { MOVE(opponent, MOVE_GASTRO_ACID); }
|
|
|
|
} SCENE {
|
|
|
|
// transforms in sun
|
|
|
|
ABILITY_POPUP(player, ABILITY_FORECAST);
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
|
|
|
// back to normal
|
|
|
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
|
|
|
|
MESSAGE("Castform transformed!");
|
2023-06-30 09:58:07 +02:00
|
|
|
} THEN {
|
|
|
|
EXPECT_EQ(player->species, SPECIES_CASTFORM);
|
2023-05-17 01:24:25 +02:00
|
|
|
}
|
|
|
|
}
|