2023-10-15 02:58:31 +01:00
|
|
|
#include "global.h"
|
|
|
|
#include "test/battle.h"
|
|
|
|
|
|
|
|
ASSUMPTIONS
|
|
|
|
{
|
2024-01-29 11:51:32 +00:00
|
|
|
ASSUME(gMovesInfo[MOVE_SYNTHESIS].effect == EFFECT_SYNTHESIS);
|
2023-10-15 02:58:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Synthesis recovers 1/2 of the user's max HP")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET) { HP(1); MaxHP(200); }
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(player, MOVE_SYNTHESIS); }
|
|
|
|
} SCENE {
|
|
|
|
HP_BAR(player, damage: -(200 / 2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Synthesis recovers 2/3 of the user's max HP in Sunlight")
|
|
|
|
{
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET) { HP(1); MaxHP(300); }
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(opponent, MOVE_SUNNY_DAY); MOVE(player, MOVE_SYNTHESIS); }
|
|
|
|
} SCENE {
|
|
|
|
HP_BAR(player, damage: -(300 / 1.5));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SINGLE_BATTLE_TEST("Synthesis recovers 1/4 of the user's max HP in Rain, Sandstorm, Hail, and Snow")
|
|
|
|
{
|
|
|
|
u32 move;
|
|
|
|
PARAMETRIZE { move = MOVE_RAIN_DANCE; }
|
|
|
|
PARAMETRIZE { move = MOVE_SANDSTORM; }
|
|
|
|
PARAMETRIZE { move = MOVE_HAIL; }
|
|
|
|
PARAMETRIZE { move = MOVE_SNOWSCAPE; }
|
|
|
|
GIVEN {
|
|
|
|
PLAYER(SPECIES_WOBBUFFET) { HP(1); MaxHP(400); }
|
|
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
|
|
} WHEN {
|
|
|
|
TURN { MOVE(opponent, move); MOVE(player, MOVE_SYNTHESIS); }
|
|
|
|
} SCENE {
|
|
|
|
HP_BAR(player, damage: -(400 / 4));
|
|
|
|
}
|
|
|
|
}
|