sovereignx/test/battle/ability/tera_shift.c
kittenchilly d58e6517f8
Add abilities Tera Shift, Tera Shell, and Teraform Zero (#4418)
* Add abilities Tera Shift, Tera Shell, and Teraform Zero

* Address reviews

* Tests and misc cleanup

* Fix alignments

* Update battle_script_commands.c

* New tests and fix behavior

* Address more reviews

* Update battle_util.c
2024-04-27 19:52:31 +02:00

35 lines
1.1 KiB
C

#include "global.h"
#include "test/battle.h"
SINGLE_BATTLE_TEST("Tera Shift transforms Terapagos into its Terastal form on switch in")
{
GIVEN {
PLAYER(SPECIES_TERAPAGOS_NORMAL) { Ability(ABILITY_TERA_SHIFT); }
OPPONENT(SPECIES_WOBBUFFET);
} WHEN {
TURN { ; }
} SCENE {
ABILITY_POPUP(player, ABILITY_TERA_SHIFT);
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
MESSAGE("Terapagos transformed!");
} THEN {
EXPECT_EQ(player->species, SPECIES_TERAPAGOS_TERASTAL);
}
}
SINGLE_BATTLE_TEST("Tera Shift can't be suppressed by Neutralizing Gas")
{
GIVEN {
PLAYER(SPECIES_TERAPAGOS_NORMAL) { Ability(ABILITY_TERA_SHIFT); }
OPPONENT(SPECIES_KOFFING) { Ability(ABILITY_NEUTRALIZING_GAS); }
} WHEN {
TURN { ; }
} SCENE {
ABILITY_POPUP(opponent, ABILITY_NEUTRALIZING_GAS);
ABILITY_POPUP(player, ABILITY_TERA_SHIFT);
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_FORM_CHANGE, player);
MESSAGE("Terapagos transformed!");
} THEN {
EXPECT_EQ(player->species, SPECIES_TERAPAGOS_TERASTAL);
}
}