Evade buff in specific class?

Sooo...

What I'm trying to do, is that an specific class called "044: Misfortune" gets a special buff when it succesfully evades,
It'll work like this:

Enemy attack → Character "044:Misfortune" Evades succesfully → Character "044: Misfortune" gets a critical hit granted on next attack dealing 250% damage instead of 200%.

I know I can just set a state to make him get 100% crit chance, but how can I make this work with the evade?
I want it to work only with this character/class, and it needs to be a passive skill/state, so it works everytime the character dodges succesfully
Code:
class Game_Battler
  def item_apply(user, item)
    @result.clear
    @result.used = item_test(user, item)
    @result.missed = (@result.used && rand >= item_hit(user, item))
    @result.evaded = ([email protected] && rand < item_eva(user, item))
    if @result.evaded && self.actor? && self.class.id == <PUT CLASS ID HERE>
      add_state(<PUT YOUR STATE ID BUFF HERE>)
    elsif @result.hit?
      unless item.damage.none?
        @result.critical = (rand < item_cri(user, item))
        make_damage_value(user, item)
        execute_damage(user)
      end
      item.effects.each {|effect| item_effect_apply(user, item, effect) }
      item_user_effect(user, item)
    end
  end
end
Code:
class Game_Battler
  def item_apply(user, item)
    @result.clear
    @result.used = item_test(user, item)
    @result.missed = (@result.used && rand >= item_hit(user, item))
    @result.evaded = ([email protected] && rand < item_eva(user, item))
    if @result.evaded && self.actor? && self.class.id == <PUT CLASS ID HERE>
      add_state(<PUT YOUR STATE ID BUFF HERE>)
    elsif @result.hit?
      unless item.damage.none?
        @result.critical = (rand < item_cri(user, item))
        make_damage_value(user, item)
        execute_damage(user)
      end
      item.effects.each {|effect| item_effect_apply(user, item, effect) }
      item_user_effect(user, item)
    end
  end
end



Thank you very much, this worked perfectly, really, I am trully grateful ♪

Original thread: https://forums.rpgmakerweb.com/threads/evade-buff-in-specific-class.103045/