35 lines
1,021 B
C
35 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);
|
||
|
}
|
||
|
}
|