Merge pull request #1708 from AsparagusEduardo/fix_SleepTalk

Fixed Sleep talk being canceled by the user being asleep..
This commit is contained in:
BuffelSaft 2021-10-04 00:35:00 +13:00 committed by GitHub
commit 142a83ca96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3131,7 +3131,7 @@ u8 AtkCanceller_UnableToUseMove(void)
gBattleMons[gBattlerAttacker].status1 -= toSub; gBattleMons[gBattlerAttacker].status1 -= toSub;
if (gBattleMons[gBattlerAttacker].status1 & STATUS1_SLEEP) if (gBattleMons[gBattlerAttacker].status1 & STATUS1_SLEEP)
{ {
if (gCurrentMove != MOVE_SNORE && gCurrentMove != MOVE_SLEEP_TALK) if (gChosenMove != MOVE_SNORE && gChosenMove != MOVE_SLEEP_TALK)
{ {
gBattlescriptCurrInstr = BattleScript_MoveUsedIsAsleep; gBattlescriptCurrInstr = BattleScript_MoveUsedIsAsleep;
gHitMarker |= HITMARKER_UNABLE_TO_USE_MOVE; gHitMarker |= HITMARKER_UNABLE_TO_USE_MOVE;