mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-20 04:28:33 +01:00
Yawn now uses B_SLEEP_TURNS, resolves #1873
This commit is contained in:
parent
221e38ff86
commit
9733f92c7f
@ -2892,7 +2892,7 @@ u8 DoBattlerEndTurnEffects(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gBattleMons[gActiveBattler].status1 |= (Random() & 3) + 2;
|
gBattleMons[gEffectBattler].status1 |= (B_SLEEP_TURNS >= GEN_5) ? ((Random() % 3) + 2) : ((Random() % 4) + 3);
|
||||||
BtlController_EmitSetMonData(BUFFER_A, REQUEST_STATUS_BATTLE, 0, 4, &gBattleMons[gActiveBattler].status1);
|
BtlController_EmitSetMonData(BUFFER_A, REQUEST_STATUS_BATTLE, 0, 4, &gBattleMons[gActiveBattler].status1);
|
||||||
MarkBattlerForControllerExec(gActiveBattler);
|
MarkBattlerForControllerExec(gActiveBattler);
|
||||||
BattleScriptExecute(BattleScript_YawnMakesAsleep);
|
BattleScriptExecute(BattleScript_YawnMakesAsleep);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user