Magic Hit Rate?

Any way to give a party member a magic hit rate? I have one's hit rate set to 0 and he nails magic attacks every time.
I'm looking for a way to make it so that I can give him a hit rate for magic attacks without changing the magic attack's success %.
Code:
class Game_Battler
  def item_hit(user, item)
    rate = item.success_rate * 0.01     
    rate *= user.hit if item.physical? || item.magical?
    return rate                         
  end
end
The code above will make all magical attack have hit rate.
Code:
class Game_Battler
  def item_hit(user, item)
    rate = item.success_rate * 0.01    
    rate *= user.hit if item.physical? || item.magical?
    return rate                        
  end
end
The code above will make all magical attack have hit rate.
thank you!

Original thread: https://forums.rpgmakerweb.com/threads/magic-hit-rate.100799/