Add Synthesis + Utililty Umbrella test (#7472)

Co-authored-by: ghoulslash <pokevoyager0@gmail.com>
This commit is contained in:
ghoulslash 2025-08-04 06:42:22 -04:00 committed by GitHub
parent 014f289ea9
commit 3dbcb2adb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,3 +46,21 @@ SINGLE_BATTLE_TEST("Synthesis recovers 1/4 of the user's max HP in Rain, Sandsto
HP_BAR(player, damage: -(400 / 4));
}
}
SINGLE_BATTLE_TEST("Synthesis recovers regular amount in sandstorm if holding utility umbrella")
{
u32 item;
PARAMETRIZE { item = ITEM_LIFE_ORB; }
PARAMETRIZE { item = ITEM_UTILITY_UMBRELLA; }
GIVEN {
PLAYER(SPECIES_WOBBUFFET) { HP(1); MaxHP(400); Item(item); }
OPPONENT(SPECIES_WOBBUFFET);
} WHEN {
TURN { MOVE(opponent, MOVE_SANDSTORM); MOVE(player, MOVE_SYNTHESIS); }
} SCENE {
if (item != ITEM_UTILITY_UMBRELLA)
HP_BAR(player, damage: -(400 / 4));
else
HP_BAR(player, damage: -(400 / 2));
}
}