forked from DizzyEggg/pokeemerald
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: KyleLaporte <moog272@gmail.com> Co-authored-by: Pawkkie <61265402+Pawkkie@users.noreply.github.com>
- Loading branch information
1 parent
a8351e3
commit b55c87f
Showing
6 changed files
with
107 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#include "global.h" | ||
#include "test/battle.h" | ||
|
||
ASSUMPTIONS | ||
{ | ||
ASSUME(gMovesInfo[MOVE_REFRESH].effect == EFFECT_REFRESH); | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Refresh cures the user of burn, frostbite, poison, and paralysis") | ||
{ | ||
u32 status1; | ||
PARAMETRIZE { status1 = STATUS1_POISON; } | ||
PARAMETRIZE { status1 = STATUS1_BURN; } | ||
PARAMETRIZE { status1 = STATUS1_PARALYSIS; } | ||
PARAMETRIZE { status1 = STATUS1_TOXIC_POISON; } | ||
PARAMETRIZE { status1 = STATUS1_FROSTBITE; } | ||
GIVEN { | ||
PLAYER(SPECIES_WOBBUFFET) { Status1(status1); }; | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_REFRESH); } | ||
} SCENE { | ||
MESSAGE("Wobbuffet's status returned to normal!"); | ||
STATUS_ICON(player, none: TRUE); | ||
} | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Refresh does not cure the user of Freeze") | ||
{ | ||
PASSES_RANDOMLY(20, 100, RNG_FROZEN); | ||
GIVEN { | ||
PLAYER(SPECIES_WOBBUFFET) { Status1(STATUS1_FREEZE); } | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_REFRESH); } | ||
} SCENE { | ||
MESSAGE("Wobbuffet used Refresh!"); | ||
NONE_OF { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_REFRESH, player); | ||
STATUS_ICON(player, none: TRUE); } | ||
MESSAGE("But it failed!"); | ||
} | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Refresh does not cure sleep when used by Sleep Talk") | ||
{ | ||
GIVEN { | ||
ASSUME(gMovesInfo[MOVE_SPORE].effect == EFFECT_SLEEP); | ||
ASSUME(gMovesInfo[MOVE_SLEEP_TALK].effect == EFFECT_SLEEP_TALK); | ||
PLAYER(SPECIES_WOBBUFFET); | ||
OPPONENT(SPECIES_WOBBUFFET) { Moves(MOVE_SLEEP_TALK, MOVE_REFRESH); } | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_SPORE); MOVE(opponent, MOVE_SLEEP_TALK); } | ||
TURN { MOVE(player, MOVE_SPORE); MOVE(opponent, MOVE_REFRESH); } | ||
} SCENE { | ||
MESSAGE("Wobbuffet used Spore!"); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_SPORE, player); | ||
ANIMATION(ANIM_TYPE_STATUS, B_ANIM_STATUS_SLP, opponent); | ||
MESSAGE("Foe Wobbuffet fell asleep!"); | ||
MESSAGE("Foe Wobbuffet used Sleep Talk!"); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_SLEEP_TALK, opponent); | ||
MESSAGE("Foe Wobbuffet used Refresh!"); | ||
NONE_OF { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_REFRESH, player); | ||
STATUS_ICON(player, none: TRUE); } | ||
MESSAGE("But it failed!"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters