mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
09fc48461f
# Conflicts: # test/battle/move_flags/three_strikes.c # test/move_flag_strike_count.c # test/move_flag_three_strikes.c # test/powder_moves.c # test/status1.c
30 lines
1.1 KiB
C
30 lines
1.1 KiB
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
SINGLE_BATTLE_TEST("Static inflicts paralysis on contact")
|
|
{
|
|
u32 move;
|
|
PARAMETRIZE { move = MOVE_TACKLE; }
|
|
PARAMETRIZE { move = MOVE_SWIFT; }
|
|
GIVEN {
|
|
ASSUME(gBattleMoves[MOVE_TACKLE].makesContact);
|
|
ASSUME(!gBattleMoves[MOVE_SWIFT].makesContact);
|
|
PLAYER(SPECIES_WOBBUFFET);
|
|
OPPONENT(SPECIES_PIKACHU) { Ability(ABILITY_STATIC); }
|
|
} WHEN {
|
|
TURN { MOVE(player, move); }
|
|
} SCENE {
|
|
if (gBattleMoves[move].makesContact) {
|
|
ABILITY_POPUP(opponent, ABILITY_STATIC);
|
|
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_PRZ, player);
|
|
MESSAGE("Foe Pikachu's Static paralyzed Wobbuffet! It may be unable to move!");
|
|
STATUS_ICON(player, paralysis: TRUE);
|
|
} else {
|
|
NOT ABILITY_POPUP(opponent, ABILITY_STATIC);
|
|
NOT ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_PRZ, player);
|
|
NOT MESSAGE("Foe Pikachu's Static paralyzed Wobbuffet! It may be unable to move!");
|
|
NOT STATUS_ICON(player, paralysis: TRUE);
|
|
}
|
|
}
|
|
}
|