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.
Flame Burst + Substitute fix (rh-hideout#4939)
Co-authored-by: Hedara <hedara90@gmail.com>
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 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,24 @@ | ||
#include "global.h" | ||
#include "test/battle.h" | ||
|
||
ASSUMPTIONS | ||
{ | ||
ASSUME(gMovesInfo[MOVE_FLAME_BURST].additionalEffects->moveEffect == MOVE_EFFECT_FLAME_BURST); | ||
} | ||
|
||
// Flame Burst AoE is supposed to hit through Substitute | ||
DOUBLE_BATTLE_TEST("Flame Burst Substitute") | ||
{ | ||
GIVEN { | ||
ASSUME(gMovesInfo[MOVE_SUBSTITUTE].effect == EFFECT_SUBSTITUTE); | ||
PLAYER(SPECIES_WOBBUFFET); | ||
PLAYER(SPECIES_WYNAUT); | ||
OPPONENT(SPECIES_WYNAUT); | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(opponentLeft, MOVE_SUBSTITUTE); MOVE(playerRight, MOVE_FLAME_BURST, target: opponentRight); } | ||
} SCENE { | ||
MESSAGE("The bursting flames hit Foe Wynaut!"); | ||
NOT MESSAGE("The SUBSTITUTE took damage for Foe Wynaut!"); | ||
} | ||
} |