sovereignx/test/battle/move_effect/solar_beam.c
Alex b0b1f449a3
Fixes regression caused by argument refactor (#5870)
Co-authored-by: Eduardo Quezada <eduardo602002@gmail.com>
2024-12-24 23:23:17 +01:00

34 lines
1,021 B
C

#include "global.h"
#include "test/battle.h"
ASSUMPTIONS
{
ASSUME(gMovesInfo[MOVE_SOLAR_BEAM].effect == EFFECT_SOLAR_BEAM);
ASSUME(gMovesInfo[MOVE_SOLAR_BLADE].argument.twoTurnAttack.status == B_WEATHER_SUN);
}
SINGLE_BATTLE_TEST("Solar Beam does not need a charging turn if Sun is up")
{
u32 ability;
PARAMETRIZE { ability = ABILITY_DROUGHT; }
PARAMETRIZE { ability = ABILITY_WHITE_SMOKE; }
GIVEN {
PLAYER(SPECIES_TORKOAL) { Ability(ability); }
OPPONENT(SPECIES_WOBBUFFET);
} WHEN {
TURN { MOVE(player, MOVE_SOLAR_BEAM); }
if (ability == ABILITY_WHITE_SMOKE) {
TURN { SKIP_TURN(player); }
}
} SCENE {
if (ability == ABILITY_WHITE_SMOKE) {
MESSAGE("Torkoal used Solar Beam!");
MESSAGE("Torkoal absorbed light!");
ANIMATION(ANIM_TYPE_MOVE, MOVE_CELEBRATE, opponent);
}
MESSAGE("Torkoal used Solar Beam!");
ANIMATION(ANIM_TYPE_MOVE, MOVE_SOLAR_BEAM, player);
}
}