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.
Fix Smack Down anim + move anim tests (#4774)
* Fix Smack Down anim + move anim tests * really agbcc * fix undefined reference * hopefully everything works
- Loading branch information
Showing
4 changed files
with
34 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "global.h" | ||
#include "test/battle.h" | ||
|
||
SINGLE_BATTLE_TEST("Move Animation Test: Smack Down works when used 15 times in a row") | ||
{ | ||
u16 j, nTurns = 15; | ||
FORCE_MOVE_ANIM(TRUE); | ||
|
||
GIVEN { | ||
PLAYER(SPECIES_WOBBUFFET); | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
for (j = 0; j < nTurns; j++) | ||
{ | ||
TURN { MOVE(player, MOVE_SMACK_DOWN); MOVE(opponent, MOVE_HELPING_HAND); } // Helping Hand, so there's no anim on the opponent's side. | ||
} | ||
} SCENE { | ||
for (j = 0; j < nTurns; j++) | ||
{ | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_SMACK_DOWN, player); | ||
} | ||
} THEN { | ||
FORCE_MOVE_ANIM(FALSE); | ||
} | ||
} |