forked from DizzyEggg/pokeemerald
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Tera Starstorm move + make Tera Blast displayed type reflect curr…
…ent type due to tera state (#4447) * Add Tera Starstorm move + make Tera Blast/Tera Starstorm displayed type reflect tera type * Ooops * Curse tests
- Loading branch information
1 parent
2648618
commit 64b2812
Showing
10 changed files
with
86 additions
and
48 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
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,36 @@ | ||
#include "global.h" | ||
#include "test/battle.h" | ||
|
||
ASSUMPTIONS | ||
{ | ||
ASSUME(gMovesInfo[MOVE_CURSE].effect == EFFECT_CURSE); | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Curse lowers Speed, raises Attack, and raises Defense when used by non-Ghost-types") | ||
{ | ||
GIVEN { | ||
PLAYER(SPECIES_WOBBUFFET); | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_CURSE); } | ||
} SCENE { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_CURSE, player); | ||
MESSAGE("Wobbuffet's Speed fell!"); | ||
MESSAGE("Wobbuffet's Attack rose!"); | ||
MESSAGE("Wobbuffet's Defense rose!"); | ||
} | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Curse cuts the user's HP in half when used by Ghost-types") | ||
{ | ||
GIVEN { | ||
PLAYER(SPECIES_MISDREAVUS); | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_CURSE); } | ||
} SCENE { | ||
s32 maxHP = GetMonData(&PLAYER_PARTY[0], MON_DATA_MAX_HP); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_CURSE, player); | ||
HP_BAR(player, hp: maxHP / 2); | ||
} | ||
} |