Fix disobedience not resetting multihit moves (#4133)

This commit is contained in:
DizzyEggg 2024-02-04 16:13:27 +01:00 committed by GitHub
parent e75169fb87
commit 512ab98bfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3842,6 +3842,10 @@ u8 AtkCanceller_UnableToUseMove(u32 moveType)
gBattleStruct->beatUpSlot = 0;
PREPARE_BYTE_NUMBER_BUFFER(gBattleScripting.multihitString, 1, 0)
}
else
{
gMultiHitCounter = 0;
}
gBattleStruct->atkCancellerTracker++;
break;
case CANCELLER_END:
@ -8222,6 +8226,7 @@ u8 IsMonDisobedient(void)
} while (gBitTable[gCurrMovePos] & calc);
gCalledMove = gBattleMons[gBattlerAttacker].moves[gCurrMovePos];
SetAtkCancellerForCalledMove();
gBattlescriptCurrInstr = BattleScript_IgnoresAndUsesRandomMove;
gBattlerTarget = GetMoveTarget(gCalledMove, NO_TARGET_OVERRIDE);
gHitMarker |= HITMARKER_DISOBEDIENT_MOVE;