mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-28 12:44:18 +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
46 lines
1.3 KiB
C
46 lines
1.3 KiB
C
#include "global.h"
|
|
#include "test/battle.h"
|
|
|
|
SINGLE_BATTLE_TEST("Freeze has a 20% chance of being thawed")
|
|
{
|
|
PASSES_RANDOMLY(20, 100, RNG_FROZEN);
|
|
GIVEN {
|
|
PLAYER(SPECIES_WOBBUFFET) { Status1(STATUS1_FREEZE); }
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_CELEBRATE); }
|
|
} SCENE {
|
|
STATUS_ICON(player, none: TRUE);
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Freeze is thawed by opponent's Fire-type attacks")
|
|
{
|
|
GIVEN {
|
|
ASSUME(gBattleMoves[MOVE_EMBER].type == TYPE_FIRE);
|
|
PLAYER(SPECIES_WOBBUFFET) { Status1(STATUS1_FREEZE); }
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(opponent, MOVE_EMBER); MOVE(player, MOVE_CELEBRATE); }
|
|
} SCENE {
|
|
MESSAGE("Foe Wobbuffet used Ember!");
|
|
MESSAGE("Wobbuffet was defrosted!");
|
|
STATUS_ICON(player, none: TRUE);
|
|
}
|
|
}
|
|
|
|
SINGLE_BATTLE_TEST("Freeze is thawed by user's Flame Wheel")
|
|
{
|
|
GIVEN {
|
|
ASSUME(gBattleMoves[MOVE_FLAME_WHEEL].thawsUser);
|
|
PLAYER(SPECIES_WOBBUFFET) { Status1(STATUS1_FREEZE); }
|
|
OPPONENT(SPECIES_WOBBUFFET);
|
|
} WHEN {
|
|
TURN { MOVE(player, MOVE_FLAME_WHEEL); }
|
|
} SCENE {
|
|
MESSAGE("Wobbuffet was defrosted by Flame Wheel!");
|
|
STATUS_ICON(player, none: TRUE);
|
|
MESSAGE("Wobbuffet used Flame Wheel!");
|
|
}
|
|
}
|