forked from rh-hideout/pokeemerald-expansion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes Mycelium Might speed bracker (rh-hideout#4146)
Co-authored-by: Bassoonian <[email protected]>
- Loading branch information
1 parent
6a71e14
commit fa5f507
Showing
2 changed files
with
47 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#include "global.h" | ||
#include "test/battle.h" | ||
|
||
SINGLE_BATTLE_TEST("Mycelium Might causes the user to move last in the priority bracket if it uses a status move") | ||
{ | ||
GIVEN { | ||
PLAYER(SPECIES_TOEDSCOOL) { Speed(100); Ability(ABILITY_MYCELIUM_MIGHT); } | ||
OPPONENT(SPECIES_WOBBUFFET) { Speed(1); } | ||
} WHEN { | ||
TURN { MOVE(opponent, MOVE_CELEBRATE); MOVE(player, MOVE_SPORE); } | ||
} SCENE { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_CELEBRATE, opponent); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_SPORE, player); | ||
STATUS_ICON(opponent, sleep: TRUE); | ||
} | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Mycelium Might will respect the speed if both battlers have the ability") | ||
{ | ||
GIVEN { | ||
PLAYER(SPECIES_TOEDSCOOL) { Speed(100); Ability(ABILITY_MYCELIUM_MIGHT); } | ||
OPPONENT(SPECIES_TOEDSCOOL) { Speed(1); Ability(ABILITY_MYCELIUM_MIGHT); } | ||
} WHEN { | ||
TURN { MOVE(opponent, MOVE_WILL_O_WISP); MOVE(player, MOVE_WILL_O_WISP); } | ||
} SCENE { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_WILL_O_WISP, player); | ||
STATUS_ICON(opponent, burn: TRUE); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_WILL_O_WISP, opponent); | ||
STATUS_ICON(player, burn: TRUE); | ||
} | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Mycelium Might ignores opposing abilities") | ||
{ | ||
GIVEN { | ||
PLAYER(SPECIES_TOEDSCOOL) { Speed(100); Ability(ABILITY_MYCELIUM_MIGHT); } | ||
OPPONENT(SPECIES_BELDUM) { Speed(1); Ability(ABILITY_CLEAR_BODY);} | ||
} WHEN { | ||
TURN { MOVE(opponent, MOVE_CELEBRATE); MOVE(player, MOVE_SCREECH); } | ||
} SCENE { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_CELEBRATE, opponent); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_SCREECH, player); | ||
NOT ABILITY_POPUP(opponent, ABILITY_CLEAR_BODY); | ||
} | ||
} |