class Game_Enemy
def skill_learn?(skill_id)
self.actions.any? {|a| a.skill_id == skill_id and ((a.condition_turn_b == 0 and a.condition_turn_a == $game_temp.battle_turn) or (a.condition_turn_b > 0 and ($game_temp.battle_turn - a.condition_turn_a) % a.condition_turn_b == 0)) and (self.hp * 100 / self.maxhp < a.condition_hp) and ($game_party.max_level >= a.condition_level) and (a.condition_switch_id > 0 and $game_switches[a.condition_switch_id])}
end
class Game_Enemy
def skill_learn?(skill_id)
self.actions.any? {|a| a.skill_id == skill_id and ((a.condition_turn_b == 0 and a.condition_turn_a == $game_temp.battle_turn) or (a.condition_turn_b > 0 and ($game_temp.battle_turn - a.condition_turn_a) % a.condition_turn_b == 0)) and (self.hp * 100 / self.maxhp < a.condition_hp) and ($game_party.max_level >= a.condition_level) and (a.condition_switch_id > 0 and $game_switches[a.condition_switch_id])}
end