fix magic coat
This commit is contained in:
parent
8acb31339d
commit
c0f5285f21
1 changed files with 5 additions and 1 deletions
|
@ -1309,6 +1309,7 @@ static void Cmd_attackcanceler(void)
|
||||||
gBattleStruct->bouncedMoveIsUsed = TRUE;
|
gBattleStruct->bouncedMoveIsUsed = TRUE;
|
||||||
// Edge case for bouncing a powder move against a grass type pokemon.
|
// Edge case for bouncing a powder move against a grass type pokemon.
|
||||||
|
|
||||||
|
ClearDamageCalcResults();
|
||||||
SetAtkCancellerForCalledMove();
|
SetAtkCancellerForCalledMove();
|
||||||
if (BlocksPrankster(gCurrentMove, gBattlerTarget, gBattlerAttacker, TRUE))
|
if (BlocksPrankster(gCurrentMove, gBattlerTarget, gBattlerAttacker, TRUE))
|
||||||
{
|
{
|
||||||
|
@ -1755,7 +1756,10 @@ static void AccuracyCheck(bool32 recalcDragonDarts, const u8 *nextInstr, const u
|
||||||
|
|
||||||
if (gBattleStruct->moveResultFlags[gBattlerTarget] & MOVE_RESULT_MISSED)
|
if (gBattleStruct->moveResultFlags[gBattlerTarget] & MOVE_RESULT_MISSED)
|
||||||
gBattleStruct->moveResultFlags[gBattlerTarget] = MOVE_RESULT_MISSED;
|
gBattleStruct->moveResultFlags[gBattlerTarget] = MOVE_RESULT_MISSED;
|
||||||
gBattleStruct->calculatedSpreadMoveAccuracy = TRUE;
|
|
||||||
|
if (calcSpreadMove)
|
||||||
|
gBattleStruct->calculatedSpreadMoveAccuracy = TRUE;
|
||||||
|
|
||||||
JumpIfMoveFailed(7, move);
|
JumpIfMoveFailed(7, move);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue