They only attack when you eat their egg

More Pteranodon Encountering Tips