Fix Last Resort
This commit is contained in:
parent
b87dac459b
commit
bcf6b02a55
1 changed files with 2 additions and 5 deletions
|
@ -6645,14 +6645,11 @@ bool32 CanUseLastResort(u8 battlerId)
|
|||
{
|
||||
if (gBattleMons[battlerId].moves[i] != MOVE_NONE)
|
||||
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++;
|
||||
}
|
||||
|
||||
if (knownMovesCount >= 2 && usedMovesCount >= knownMovesCount - 1)
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
return (knownMovesCount >= 2 && usedMovesCount >= knownMovesCount - 1);
|
||||
}
|
||||
|
||||
#define DEFOG_CLEAR(status, structField, battlescript, move)\
|
||||
|
|
Loading…
Reference in a new issue