mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-06 07:27:47 +01:00
Fixed actually checking for Sheer Cold instead of affecting all OHKO moves
This commit is contained in:
parent
dde65d5cea
commit
5e9767e067
@ -10729,7 +10729,7 @@ static void Cmd_tryKO(void)
|
|||||||
{
|
{
|
||||||
u16 odds = gBattleMoves[gCurrentMove].accuracy + (gBattleMons[gBattlerAttacker].level - gBattleMons[gBattlerTarget].level);
|
u16 odds = gBattleMoves[gCurrentMove].accuracy + (gBattleMons[gBattlerAttacker].level - gBattleMons[gBattlerTarget].level);
|
||||||
#if B_SHEER_COLD_ACC >= GEN_7
|
#if B_SHEER_COLD_ACC >= GEN_7
|
||||||
if (!IS_BATTLER_OF_TYPE(gBattlerAttacker, TYPE_ICE))
|
if (gCurrentMove == MOVE_SHEER_COLD && !IS_BATTLER_OF_TYPE(gBattlerAttacker, TYPE_ICE))
|
||||||
odds -= 10;
|
odds -= 10;
|
||||||
#endif
|
#endif
|
||||||
if (Random() % 100 + 1 < odds && gBattleMons[gBattlerAttacker].level >= gBattleMons[gBattlerTarget].level)
|
if (Random() % 100 + 1 < odds && gBattleMons[gBattlerAttacker].level >= gBattleMons[gBattlerTarget].level)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user