Fix Last Resort

This commit is contained in:
DizzyEggg 2020-01-18 18:57:23 +01:00
parent b87dac459b
commit bcf6b02a55

View file

@ -6645,14 +6645,11 @@ bool32 CanUseLastResort(u8 battlerId)
{ {
if (gBattleMons[battlerId].moves[i] != MOVE_NONE) if (gBattleMons[battlerId].moves[i] != MOVE_NONE)
knownMovesCount++; knownMovesCount++;
if (gDisableStructs[battlerId].usedMoves & gBitTable[i]) if (i != gCurrMovePos && gDisableStructs[battlerId].usedMoves & gBitTable[i]) // Increment used move count for all moves except current Last Resort.
usedMovesCount++; usedMovesCount++;
} }
if (knownMovesCount >= 2 && usedMovesCount >= knownMovesCount - 1) return (knownMovesCount >= 2 && usedMovesCount >= knownMovesCount - 1);
return TRUE;
else
return FALSE;
} }
#define DEFOG_CLEAR(status, structField, battlescript, move)\ #define DEFOG_CLEAR(status, structField, battlescript, move)\