Fix sleeping turns (#370)

* Fix sleeping turns

* Readjusted numbers. Thanks Doesnt
This commit is contained in:
Eduardo Alvaro Quezada D'Ottone 2020-05-02 04:35:50 -04:00 committed by GitHub
parent a848c96798
commit f82bd2f9c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2442,7 +2442,7 @@ void SetMoveEffect(bool32 primary, u32 certain)
BattleScriptPush(gBattlescriptCurrInstr + 1);
if (sStatusFlagsForMoveEffects[gBattleScripting.moveEffect] == STATUS1_SLEEP)
gBattleMons[gEffectBattler].status1 |= (B_SLEEP_TURNS >= GEN_5) ? ((Random() & 2) + 1) : ((Random() & 3) + 2);
gBattleMons[gEffectBattler].status1 |= (B_SLEEP_TURNS >= GEN_5) ? ((Random() % 3) + 2) : ((Random() % 4) + 3);
else
gBattleMons[gEffectBattler].status1 |= sStatusFlagsForMoveEffects[gBattleScripting.moveEffect];