diff options
author | hjk321 <37224753+hjk321@users.noreply.github.com> | 2019-05-03 07:56:44 -0500 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-05-03 18:21:11 -0500 |
commit | 26114d45793c14602e7c9f565461bddac1d3fc40 (patch) | |
tree | 3a8ded661ae46cc67ef0b7a4cfc612c5edd8a7cf | |
parent | ee4049d93edfeb24a315c40e3d6849278cdb33e5 (diff) |
Update comparison
-rw-r--r-- | src/battle_script_commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index d2496881e..51b658250 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -1276,7 +1276,7 @@ static void atk04_critcalc(void) + 2 * (holdEffect == HOLD_EFFECT_LUCKY_PUNCH && gBattleMons[gBattlerAttacker].species == SPECIES_CHANSEY) + 2 * (holdEffect == HOLD_EFFECT_STICK && gBattleMons[gBattlerAttacker].species == SPECIES_FARFETCHD); - if (critChance > ARRAY_COUNT(sCriticalHitChance) - 1 ) + if (critChance >= ARRAY_COUNT(sCriticalHitChance)) critChance = ARRAY_COUNT(sCriticalHitChance) - 1; if ((gBattleMons[gBattlerTarget].ability != ABILITY_BATTLE_ARMOR && gBattleMons[gBattlerTarget].ability != ABILITY_SHELL_ARMOR) |