$data_enemies[敵人id].actions.each {|action| abc=true if action.skill_id==520}
b.enemy.actions.each {|action| b.hp=0 if action.skill_id==86} #b.enemy就是$data_enemies[b.enemy_id]