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.
Added missing redirect abilities Gen 3-4 config (rh-hideout#4920)
* Added missing redirect abilities Gen 3-4 config * Combined 3 Battle Script Natives into 1 * Cleaner FindMonThatAbsorbsOpponentsMove
- Loading branch information
1 parent
60c7588
commit de609a2
Showing
12 changed files
with
207 additions
and
63 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
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
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,73 @@ | ||
#include "global.h" | ||
#include "test/battle.h" | ||
|
||
SINGLE_BATTLE_TEST("Lightning Rod absorbs Electric-type moves and increases the Sp. Attack [Gen5+]") | ||
{ | ||
GIVEN { | ||
ASSUME(gMovesInfo[MOVE_THUNDERBOLT].type == TYPE_ELECTRIC); | ||
PLAYER(SPECIES_WOBBUFFET); | ||
OPPONENT(SPECIES_RAICHU) { Ability(ABILITY_LIGHTNING_ROD); } | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_THUNDERBOLT); MOVE(opponent, MOVE_CELEBRATE); } | ||
} SCENE { | ||
if (B_REDIRECT_ABILITY_IMMUNITY >= GEN_5) { | ||
NONE_OF { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_THUNDERBOLT, player); | ||
HP_BAR(opponent); | ||
}; | ||
ABILITY_POPUP(opponent, ABILITY_LIGHTNING_ROD); | ||
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, opponent); | ||
MESSAGE("Foe Raichu's Sp. Atk rose!"); | ||
} else { | ||
NONE_OF { | ||
ABILITY_POPUP(opponent, ABILITY_LIGHTNING_ROD); | ||
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, opponent); | ||
MESSAGE("Foe Raichu's Sp. Atk rose!"); | ||
}; | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_THUNDERBOLT, player); | ||
HP_BAR(opponent); | ||
} | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_CELEBRATE, opponent); | ||
} | ||
} | ||
|
||
DOUBLE_BATTLE_TEST("Lightning Rod forces single-target Electric-type moves to target the Pokémon with this Ability.") | ||
{ | ||
GIVEN { | ||
ASSUME(gMovesInfo[MOVE_THUNDERBOLT].type == TYPE_ELECTRIC); | ||
PLAYER(SPECIES_WOBBUFFET); | ||
PLAYER(SPECIES_WOBBUFFET); | ||
OPPONENT(SPECIES_RAICHU) { Ability(ABILITY_LIGHTNING_ROD); } | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { | ||
MOVE(playerLeft, MOVE_THUNDERBOLT, target: opponentRight); | ||
MOVE(playerRight, MOVE_THUNDERBOLT, target: opponentRight); | ||
MOVE(opponentLeft, MOVE_CELEBRATE); | ||
MOVE(opponentRight, MOVE_CELEBRATE); | ||
} | ||
} SCENE { | ||
if (B_REDIRECT_ABILITY_IMMUNITY >= GEN_5) { | ||
NONE_OF { | ||
HP_BAR(opponentLeft); | ||
HP_BAR(opponentRight); | ||
}; | ||
ABILITY_POPUP(opponentLeft, ABILITY_LIGHTNING_ROD); | ||
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, opponentLeft); | ||
MESSAGE("Foe Raichu's Sp. Atk rose!"); | ||
ABILITY_POPUP(opponentLeft, ABILITY_LIGHTNING_ROD); | ||
ANIMATION(ANIM_TYPE_GENERAL, B_ANIM_STATS_CHANGE, opponentLeft); | ||
MESSAGE("Foe Raichu's Sp. Atk rose!"); | ||
} else { | ||
NONE_OF { | ||
HP_BAR(opponentRight); | ||
}; | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_THUNDERBOLT, playerLeft); | ||
HP_BAR(opponentLeft); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_THUNDERBOLT, playerRight); | ||
HP_BAR(opponentLeft); | ||
} | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_CELEBRATE, opponentLeft); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_CELEBRATE, opponentRight); | ||
} | ||
} |
Oops, something went wrong.