From 71ba501b94c7fabc1ddb65b323b3cc6568bec84c Mon Sep 17 00:00:00 2001 From: Eduardo Quezada Date: Mon, 30 Oct 2023 10:58:30 -0300 Subject: [PATCH] Fixed tests on modern --- test/battle/ability/sheer_force.c | 2 +- test/battle/hold_effect/white_herb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/battle/ability/sheer_force.c b/test/battle/ability/sheer_force.c index 6bff0bcd00cf..fba494cd4d50 100644 --- a/test/battle/ability/sheer_force.c +++ b/test/battle/ability/sheer_force.c @@ -4,7 +4,7 @@ SINGLE_BATTLE_TEST("Sheer Force boosts power, but removes secondary effects of moves", s16 damage) { s32 j; - u32 ability, move; + u32 ability = 0, move = 0; for (j = 1; j < MOVES_COUNT; j++) { diff --git a/test/battle/hold_effect/white_herb.c b/test/battle/hold_effect/white_herb.c index f0ed096216f3..a34bb6a347f1 100644 --- a/test/battle/hold_effect/white_herb.c +++ b/test/battle/hold_effect/white_herb.c @@ -3,7 +3,7 @@ ASSUMPTIONS { - gItems[ITEM_WHITE_HERB].holdEffect == HOLD_EFFECT_RESTORE_STATS; + ASSUME(gItems[ITEM_WHITE_HERB].holdEffect == HOLD_EFFECT_RESTORE_STATS); } SINGLE_BATTLE_TEST("White Herb restores stats when they're lowered")