From 4d773ef40c4cfe7a013522ef471b298ad1ee7b81 Mon Sep 17 00:00:00 2001 From: LOuroboros Date: Fri, 2 Apr 2021 22:52:21 -0300 Subject: [PATCH] Removed the BattleScript from Inner Focus Any questions shall be directed to Mr. Junichi Masuda. --- src/battle_script_commands.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 0c5250050e..fbd70ec3d2 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -2739,18 +2739,9 @@ void SetMoveEffect(bool32 primary, u32 certain) } break; case MOVE_EFFECT_FLINCH: - if (GetBattlerAbility(gEffectBattler) == ABILITY_INNER_FOCUS) + if (gBattleMons[gEffectBattler].ability == ABILITY_INNER_FOCUS) { - if (primary == TRUE || certain == MOVE_EFFECT_CERTAIN) - { - gLastUsedAbility = ABILITY_INNER_FOCUS; - RecordAbilityBattle(gEffectBattler, ABILITY_INNER_FOCUS); - gBattlescriptCurrInstr = BattleScript_FlinchPrevention; - } - else - { - gBattlescriptCurrInstr++; - } + gBattlescriptCurrInstr++; } else {