2024-08-17 17:19:22 +01:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
2025-01-01 19:34:33 +00:00
|
|
|
ASSUME(GetMoveEffect(MOVE_GUARD_SPLIT) == EFFECT_GUARD_SPLIT);
|
2024-08-17 17:19:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Guard Split averages users and targets Def and Sp. Def stats")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_BULBASAUR);
|
|
|
|
OPPONENT(SPECIES_IVYSAUR);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_GUARD_SPLIT); }
|
|
|
|
} SCENE {
|
|
|
|
ANIMATION(ANIM_TYPE_MOVE, MOVE_GUARD_SPLIT, player);
|
|
|
|
} THEN {
|
|
|
|
EXPECT_EQ(player->defense, opponent->defense);
|
|
|
|
EXPECT_EQ(player->spDefense, opponent->spDefense);
|
|
|
|
}
|
|
|
|
}
|