More spacing and format fixes

This commit is contained in:
W1serV1ser 2021-11-21 15:42:31 -08:00
parent 844a0217f7
commit 5d1228fc2e
2 changed files with 13 additions and 15 deletions

View file

@ -1466,14 +1466,12 @@ void CancelMultiTurnMoves(u8 battler)
{
gBattleStruct->skyDropTargets[0] = 0xFE - battler;
}
// If this CancelMultiTurnMoves is occuring due to cancelmultiturnmoves script
else if (gBattlescriptCurrInstr[0] == 0x76 && gBattlescriptCurrInstr[2] == 0)
{
gBattlerAttacker = i;
gBattlescriptCurrInstr = BattleScript_ThrashConfuses - 3;
}
// If this CancelMultiTurnMoves is occuring due to receiving Sleep/Freeze status
else if (gBattleScripting.moveEffect <= PRIMARY_STATUS_MOVE_EFFECT)
{
@ -1482,7 +1480,6 @@ void CancelMultiTurnMoves(u8 battler)
gBattlescriptCurrInstr = BattleScript_ThrashConfuses - 1;
}
}
}
break;
}
@ -1509,6 +1506,7 @@ void CancelMultiTurnMoves(u8 battler)
if (gBattleMons[i].status2 & STATUS2_LOCK_CONFUSE && gBattleStruct->turnEffectsTracker != 24)
{
gBattleMons[i].status2 &= ~(STATUS2_LOCK_CONFUSE);
if (!(GetBattlerAbility(i) == ABILITY_OWN_TEMPO
|| gBattleMons[i].status2 & STATUS2_CONFUSION
|| IsBattlerTerrainAffected(i, STATUS_FIELD_MISTY_TERRAIN)))