66 lines
2.1 KiB
C
66 lines
2.1 KiB
C
|
#include "global.h"
|
||
|
#include "test/battle.h"
|
||
|
|
||
|
ASSUMPTIONS
|
||
|
{
|
||
|
ASSUME(gBattleMoves[MOVE_ION_DELUGE].effect == EFFECT_ION_DELUGE);
|
||
|
}
|
||
|
|
||
|
// For some reason SINGLE_BATTLE_TEST didn't catch these two issues.
|
||
|
WILD_BATTLE_TEST("Ion Deluge works the same way as always when used by a mon with Volt Absorb")
|
||
|
{
|
||
|
GIVEN {
|
||
|
PLAYER(SPECIES_WOBBUFFET);
|
||
|
OPPONENT(SPECIES_LANTURN) { Ability(ABILITY_VOLT_ABSORB); HP(1); }
|
||
|
} WHEN {
|
||
|
TURN { MOVE(opponent, MOVE_ION_DELUGE); }
|
||
|
} SCENE {
|
||
|
MESSAGE("Wild Lanturn used Ion Deluge!");
|
||
|
NONE_OF {
|
||
|
ABILITY_POPUP(opponent, ABILITY_VOLT_ABSORB);
|
||
|
HP_BAR(opponent);
|
||
|
MESSAGE("Wild Lanturn restored HP using its Volt Absorb!");
|
||
|
}
|
||
|
MESSAGE("A deluge of ions showers the battlefield!");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
WILD_BATTLE_TEST("Ion Deluge works the same way as always when used by a mon with Lightning Rod / Motor Drive")
|
||
|
{
|
||
|
u16 ability;
|
||
|
PARAMETRIZE { ability = ABILITY_LIGHTNING_ROD; }
|
||
|
PARAMETRIZE { ability = ABILITY_MOTOR_DRIVE; }
|
||
|
|
||
|
GIVEN {
|
||
|
PLAYER(SPECIES_WOBBUFFET);
|
||
|
OPPONENT(SPECIES_ZEBSTRIKA) { Ability(ability); }
|
||
|
} WHEN {
|
||
|
TURN { MOVE(opponent, MOVE_ION_DELUGE); }
|
||
|
} SCENE {
|
||
|
MESSAGE("Wild Zebstrika used Ion Deluge!");
|
||
|
NONE_OF {
|
||
|
ABILITY_POPUP(opponent, ability);
|
||
|
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, opponent);
|
||
|
MESSAGE("Wild Zebstrika's Sp.Atk rose!");
|
||
|
MESSAGE("Wild Zebstrika's Speed rose!");
|
||
|
}
|
||
|
MESSAGE("A deluge of ions showers the battlefield!");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
SINGLE_BATTLE_TEST("Ion Deluge makes Normal type moves Electric type")
|
||
|
{
|
||
|
GIVEN {
|
||
|
ASSUME(gBattleMoves[MOVE_TACKLE].type == TYPE_NORMAL);
|
||
|
PLAYER(SPECIES_WOBBUFFET);
|
||
|
OPPONENT(SPECIES_GOLBAT);
|
||
|
} WHEN {
|
||
|
TURN { MOVE(opponent, MOVE_ION_DELUGE); MOVE(player, MOVE_TACKLE); }
|
||
|
} SCENE {
|
||
|
MESSAGE("Foe Golbat used Ion Deluge!");
|
||
|
MESSAGE("A deluge of ions showers the battlefield!");
|
||
|
MESSAGE("Wobbuffet used Tackle!");
|
||
|
MESSAGE("It's super effective!"); // Because Tackle is now electric type.
|
||
|
}
|
||
|
}
|