mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-25 19:24:16 +01:00
fix psychic terrain blocking moves it shouldnt block (#3521)
This commit is contained in:
parent
90d9334f0b
commit
8b359c2ca4
@ -3824,6 +3824,8 @@ u8 AtkCanceller_UnableToUseMove2(void)
|
|||||||
if (gFieldStatuses & STATUS_FIELD_PSYCHIC_TERRAIN
|
if (gFieldStatuses & STATUS_FIELD_PSYCHIC_TERRAIN
|
||||||
&& IsBattlerGrounded(gBattlerTarget)
|
&& IsBattlerGrounded(gBattlerTarget)
|
||||||
&& GetChosenMovePriority(gBattlerAttacker) > 0
|
&& GetChosenMovePriority(gBattlerAttacker) > 0
|
||||||
|
&& gBattleMoves[gCurrentMove].target != MOVE_TARGET_ALL_BATTLERS
|
||||||
|
&& gBattleMoves[gCurrentMove].target != MOVE_TARGET_OPPONENTS_FIELD
|
||||||
&& GetBattlerSide(gBattlerAttacker) != GetBattlerSide(gBattlerTarget))
|
&& GetBattlerSide(gBattlerAttacker) != GetBattlerSide(gBattlerTarget))
|
||||||
{
|
{
|
||||||
CancelMultiTurnMoves(gBattlerAttacker);
|
CancelMultiTurnMoves(gBattlerAttacker);
|
||||||
|
@ -78,7 +78,6 @@ SINGLE_BATTLE_TEST("Psychic Terrain doesn't block priority moves that target the
|
|||||||
|
|
||||||
SINGLE_BATTLE_TEST("Psychic Terrain doesn't block priority moves that target all battlers")
|
SINGLE_BATTLE_TEST("Psychic Terrain doesn't block priority moves that target all battlers")
|
||||||
{
|
{
|
||||||
KNOWN_FAILING;
|
|
||||||
GIVEN {
|
GIVEN {
|
||||||
PLAYER(SPECIES_SABLEYE) { Ability(ABILITY_PRANKSTER); }
|
PLAYER(SPECIES_SABLEYE) { Ability(ABILITY_PRANKSTER); }
|
||||||
OPPONENT(SPECIES_WOBBUFFET);
|
OPPONENT(SPECIES_WOBBUFFET);
|
||||||
@ -93,7 +92,6 @@ SINGLE_BATTLE_TEST("Psychic Terrain doesn't block priority moves that target all
|
|||||||
|
|
||||||
SINGLE_BATTLE_TEST("Psychic Terrain doesn't block priority moves that target all opponents")
|
SINGLE_BATTLE_TEST("Psychic Terrain doesn't block priority moves that target all opponents")
|
||||||
{
|
{
|
||||||
KNOWN_FAILING;
|
|
||||||
GIVEN {
|
GIVEN {
|
||||||
PLAYER(SPECIES_SABLEYE) { Ability(ABILITY_PRANKSTER); }
|
PLAYER(SPECIES_SABLEYE) { Ability(ABILITY_PRANKSTER); }
|
||||||
OPPONENT(SPECIES_WOBBUFFET);
|
OPPONENT(SPECIES_WOBBUFFET);
|
||||||
@ -124,7 +122,6 @@ DOUBLE_BATTLE_TEST("Psychic Terrain doesn't block priority moves that target all
|
|||||||
|
|
||||||
SINGLE_BATTLE_TEST("Psychic Terrain doesn't block priority field moves")
|
SINGLE_BATTLE_TEST("Psychic Terrain doesn't block priority field moves")
|
||||||
{
|
{
|
||||||
KNOWN_FAILING;
|
|
||||||
GIVEN {
|
GIVEN {
|
||||||
PLAYER(SPECIES_SABLEYE) { Ability(ABILITY_PRANKSTER); }
|
PLAYER(SPECIES_SABLEYE) { Ability(ABILITY_PRANKSTER); }
|
||||||
OPPONENT(SPECIES_WOBBUFFET);
|
OPPONENT(SPECIES_WOBBUFFET);
|
||||||
|
Loading…
Reference in New Issue
Block a user