Merge pull request #1748 from ghoulslash/memento

Fix memento Gen 7 fail condition
This commit is contained in:
Eduardo Quezada D'Ottone 2021-10-14 18:27:01 -03:00 committed by GitHub
commit 9b20fd4a07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11580,7 +11580,7 @@ static void Cmd_jumpifattackandspecialattackcannotfall(void) // memento
&& gBattleMons[gBattlerTarget].statStages[STAT_SPATK] == MIN_STAT_STAGE && gBattleMons[gBattlerTarget].statStages[STAT_SPATK] == MIN_STAT_STAGE
&& gBattleCommunication[MISS_TYPE] != B_MSG_PROTECTED) && gBattleCommunication[MISS_TYPE] != B_MSG_PROTECTED)
#else #else
if (gBattleCommunication[MISS_TYPE] != B_MSG_PROTECTED if (gBattleCommunication[MISS_TYPE] == B_MSG_PROTECTED
|| gStatuses3[gBattlerTarget] & STATUS3_SEMI_INVULNERABLE || gStatuses3[gBattlerTarget] & STATUS3_SEMI_INVULNERABLE
|| IsBattlerProtected(gBattlerTarget, gCurrentMove) || IsBattlerProtected(gBattlerTarget, gCurrentMove)
|| DoesSubstituteBlockMove(gBattlerAttacker, gBattlerTarget, gCurrentMove)) || DoesSubstituteBlockMove(gBattlerAttacker, gBattlerTarget, gCurrentMove))