Update src/battle_util.c

Co-authored-by: LOuroboros <lunosouroboros@gmail.com>
This commit is contained in:
TheXaman 2022-01-05 18:54:42 +01:00 committed by GitHub
parent 9733f92c7f
commit 328b501394
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2892,7 +2892,7 @@ u8 DoBattlerEndTurnEffects(void)
}
else
{
gBattleMons[gEffectBattler].status1 |= (B_SLEEP_TURNS >= GEN_5) ? ((Random() % 3) + 2) : ((Random() % 4) + 3);
gBattleMons[gActiveBattler].status1 |= (B_SLEEP_TURNS >= GEN_5) ? ((Random() % 3) + 2) : ((Random() % 4) + 3);
BtlController_EmitSetMonData(BUFFER_A, REQUEST_STATUS_BATTLE, 0, 4, &gBattleMons[gActiveBattler].status1);
MarkBattlerForControllerExec(gActiveBattler);
BattleScriptExecute(BattleScript_YawnMakesAsleep);