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 Ability Shield, Neutralizing Gas interaction (rh-hideout#4391)
* Fixes Ability Shield, Neutralizing Gas interaction * test was wrong
- Loading branch information
1 parent
6e8aad2
commit ad792b3
Showing
3 changed files
with
50 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
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,34 @@ | ||
#include "global.h" | ||
#include "test/battle.h" | ||
|
||
ASSUMPTIONS | ||
{ | ||
ASSUME(gItemsInfo[ITEM_ABILITY_SHIELD].holdEffect == HOLD_EFFECT_ABILITY_SHIELD); | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Ability Shield prevents Neutralizing Gas") | ||
{ | ||
u32 item; | ||
|
||
PARAMETRIZE { item = ITEM_ABILITY_SHIELD; } | ||
PARAMETRIZE { item = ITEM_NONE; } | ||
|
||
GIVEN { | ||
PLAYER(SPECIES_TORKOAL) { Ability(ABILITY_DROUGHT); Item(item); } | ||
OPPONENT(SPECIES_KOFFING) { Ability(ABILITY_NEUTRALIZING_GAS); } | ||
} WHEN { | ||
TURN { } | ||
} SCENE { | ||
ABILITY_POPUP(opponent, ABILITY_NEUTRALIZING_GAS); | ||
MESSAGE("Neutralizing Gas filled the area!"); | ||
if (item == ITEM_ABILITY_SHIELD) { | ||
ABILITY_POPUP(player, ABILITY_DROUGHT); | ||
MESSAGE("Torkoal's Drought intensified the sun's rays!"); | ||
} else { | ||
NONE_OF { | ||
ABILITY_POPUP(player, ABILITY_DROUGHT); | ||
MESSAGE("Torkoal's Drought intensified the sun's rays!"); | ||
} | ||
} | ||
} | ||
} |