Skip to content

Commit

Permalink
Fix ASSUMPTIONS not working
Browse files Browse the repository at this point in the history
  • Loading branch information
DizzyEggg committed Dec 24, 2024
1 parent 8edf144 commit 8d3980e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/test/test.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ s32 Test_MgbaPrintf(const char *fmt, ...);

#define ASSUMPTIONS \
static void Assumptions(void); \
__attribute__((section(".tests"), used)) static const struct Test sAssumptions = \
__attribute__((section(".tests"), used, no_reorder)) static const struct Test sAssumptions = \
{ \
.name = "ASSUMPTIONS: " __FILE__, \
.filename = __FILE__, \
Expand Down
6 changes: 3 additions & 3 deletions test/battle/move_effect/two_turns_attack.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ ASSUMPTIONS

// Solar Beam - check for sun
ASSUME(gMovesInfo[MOVE_SOLAR_BEAM].effect == EFFECT_SOLAR_BEAM);
ASSUME(HIHALF(gMovesInfo[MOVE_SOLAR_BLADE].argument.twoTurnAttack.status) == B_WEATHER_SUN);
ASSUME(gMovesInfo[MOVE_SOLAR_BLADE].argument.twoTurnAttack.status == B_WEATHER_SUN);
ASSUME(gMovesInfo[MOVE_SOLAR_BLADE].effect == EFFECT_SOLAR_BEAM);
ASSUME(HIHALF(gMovesInfo[MOVE_SOLAR_BLADE].argument.twoTurnAttack.status) == B_WEATHER_SUN);
ASSUME(gMovesInfo[MOVE_SOLAR_BLADE].argument.twoTurnAttack.status == B_WEATHER_SUN);

// Electro shot - check for rain
ASSUME(HIHALF(gMovesInfo[MOVE_ELECTRO_SHOT].argument.twoTurnAttack.status) == B_WEATHER_RAIN);
ASSUME(gMovesInfo[MOVE_ELECTRO_SHOT].argument.twoTurnAttack.status == B_WEATHER_RAIN);
ASSUME(gMovesInfo[MOVE_ELECTRO_SHOT].effect == EFFECT_TWO_TURNS_ATTACK);
ASSUME(MoveHasAdditionalEffectSelf(MOVE_ELECTRO_SHOT, MOVE_EFFECT_SP_ATK_PLUS_1) == TRUE);
}
Expand Down

0 comments on commit 8d3980e

Please sign in to comment.