Updated Dire Claw's effect again
Thanks to MGriffin for providing a much nicer code for it.
This commit is contained in:
parent
0159065dea
commit
f5c165ff0c
1 changed files with 5 additions and 9 deletions
|
@ -3654,13 +3654,9 @@ void SetMoveEffect(bool32 primary, u32 certain)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DIRE_CLAW_STATUS_PICK:
|
static const u8 sDireClawEffects[] = { MOVE_EFFECT_POISON, MOVE_EFFECT_PARALYSIS, MOVE_EFFECT_SLEEP };
|
||||||
gBattleScripting.moveEffect = Random() % 6;
|
gBattleScripting.moveEffect = sDireClawEffects[Random() % 3];
|
||||||
if (gBattleScripting.moveEffect == 0
|
SetMoveEffect(TRUE, 0);
|
||||||
|| gBattleScripting.moveEffect == MOVE_EFFECT_BURN
|
|
||||||
|| gBattleScripting.moveEffect == MOVE_EFFECT_FREEZE)
|
|
||||||
goto DIRE_CLAW_STATUS_PICK;
|
|
||||||
SetMoveEffect(FALSE, 0);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue