pokeemmo/test/battle/move_effect/nature_power.c
FosterProgramming fd07daf0d8
Fix nature power string and add support for evnvironment in tests (#8068)
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-10-28 19:23:16 +01:00

28 lines
838 B
C

#include "global.h"
#include "test/battle.h"
#include "battle_environment.h"
//TO_DO_BATTLE_TEST("TODO: Write Nature Power (Move Effect) test titles")
SINGLE_BATTLE_TEST("Nature power plays a move correctly in any background")
{
u32 environment = 0;
u32 move = MOVE_TRI_ATTACK;
for (u32 j = 0; j < BATTLE_ENVIRONMENT_COUNT; j++)
{
PARAMETRIZE {environment = i;}
}
GIVEN {
PLAYER(SPECIES_WOBBUFFET);
OPPONENT(SPECIES_WOBBUFFET);
Environment(environment);
if (gBattleEnvironmentInfo[environment].naturePower)
move = gBattleEnvironmentInfo[environment].naturePower;
} WHEN {
TURN { MOVE(player, MOVE_NATURE_POWER); }
} SCENE {
NOT MESSAGE("Nature Power turned into Nature Power!");
ANIMATION(ANIM_TYPE_MOVE, move, player);
}
}