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
35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
SINGLE_BATTLE_TEST("Stench has a 10% chance to flinch")
|
|
{
|
|
PASSES_RANDOMLY(1, 10, RNG_STENCH);
|
|
GIVEN {
|
|
ASSUME(gBattleMoves[MOVE_TACKLE].power > 0);
|
|
PLAYER(SPECIES_GRIMER) { Ability(ABILITY_STENCH); }
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_TACKLE); MOVE(opponent, MOVE_CELEBRATE); }
|
|
} SCENE {
|
|
MESSAGE("Foe Wobbuffet flinched!");
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Stench does not stack with King's Rock")
|
|
{
|
|
PASSES_RANDOMLY(1, 10, RNG_STENCH);
|
|
GIVEN {
|
|
ASSUME(gItems[ITEM_KINGS_ROCK].holdEffect == HOLD_EFFECT_FLINCH);
|
|
ASSUME(gBattleMoves[MOVE_TACKLE].power > 0);
|
|
|
|
PLAYER(SPECIES_GRIMER) { Ability(ABILITY_STENCH); Item(ITEM_KINGS_ROCK); }
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_TACKLE); MOVE(opponent, MOVE_CELEBRATE); }
|
|
} SCENE {
|
|
MESSAGE("Foe Wobbuffet flinched!");
|
|
}
|
|
}
|
|
|
|
// TODO: Test against interaction with multi hits
|