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 Magician Life orb recoil when stealing (#3753)
* Fix Magician Life orb recoil * get rid of unneeded assume
- Loading branch information
Showing
4 changed files
with
33 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
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,29 @@ | ||
#include "global.h" | ||
#include "test/battle.h" | ||
|
||
SINGLE_BATTLE_TEST("Magician does not get self-damage recoil after stealing Life Orb") | ||
{ | ||
GIVEN { | ||
ASSUME(gItems[ITEM_LIFE_ORB].holdEffect == HOLD_EFFECT_LIFE_ORB); | ||
ASSUME(gBattleMoves[MOVE_TACKLE].power != 0); | ||
PLAYER(SPECIES_DELPHOX) { Ability(ABILITY_MAGICIAN); Item(ITEM_NONE); } | ||
OPPONENT(SPECIES_WOBBUFFET) { Item(ITEM_LIFE_ORB); } | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_TACKLE); } | ||
TURN { MOVE(player, MOVE_TACKLE); } | ||
} SCENE { | ||
// 1st turn | ||
MESSAGE("Delphox used Tackle!"); | ||
ABILITY_POPUP(player, ABILITY_MAGICIAN); | ||
MESSAGE("Delphox stole Foe Wobbuffet's Life Orb!"); | ||
NONE_OF { | ||
HP_BAR(player); | ||
MESSAGE("Delphox was hurt by its Life Orb!"); | ||
} | ||
// 2nd turn - Life Orb recoil happens now | ||
MESSAGE("Delphox used Tackle!"); | ||
HP_BAR(player); | ||
MESSAGE("Delphox was hurt by its Life Orb!"); | ||
} | ||
} | ||
|