Here we go again!
So, a pit fiend has the following natural attacks:
- 2 claws +30 melee (2d8+13)
- 2 wings +28 melee (2d6+6)
- bite +28 melee (4d6+6 plus poison plus disease)
- tail slap +28 melee (2d8+6)
Now, normally, his claw attacks are his "primary" natural attacks and everything else is a "secondary" natural attack. You'll notice that they have a -2 penalty on their attack rolls and only use 1/2 his Strength modifier for damage (he has the Multiattack feat).
If he's wielding a greatsword, he's presumably holding it in his hands. Accordingly, he can't use his claw attacks, just like the cornugon:
SRD said:
- Spiked chain +25/+20/+15 melee (2d6+15 plus stun) and bite +22 melee (2d8+5) and tail +22 melee (2d6+5 plus infernal wound)
- 2 claws +24 melee (2d6+10) and bite + 22 melee (2d8+5) and tail +22 melee (2d6+5 plus infernal wound)
The cornugon is using his spiked chain (a two-handed weapon), and so cannot make claw attacks.
So, if your pit fiend wanted to attack with his greatsword, his full attack routine would look like:
- Greatsword +30 / +25 / +20 / +15 melee (3d6+19, 19-20/x2)
- 2 wings +28 melee (2d6+6)
- bite +28 melee (4d6+6 plus poison plus disease)
- tail slap +28 melee (2d8+6)
Notice the differences? The greatsword (large, 3d6 damage), being a manufactured weapon, can make iterative attacks. It's two-handed, so he gets a damage bonus. All of his other attacks remain the same, because they are secondary natural attacks.
What if he uses a longsword, instead?
Well, a longsword only takes up a single hand. Therefore, his other hand is open, and can make claw attacks.
- Longsword +30 / +25 / +20 / +15 melee (2d6+13, 19-20/x2)
- Claw +28 melee (2d8+6)
- 2 wings +28 melee (2d6+6)
- bite +28 melee (4d6+6 plus poison plus disease)
- tail slap +28 melee (2d8+6)
So, what are the differences here?
Well, the longsword (large, 2d6 damage), like the greatsword, can make iterative attacks. In one hand, he only gets his normal Strength bonus to damage.
The tricky point is his claw attack.
Because the pit fiend is using a manufactured weapon, it's a secondary natural attack. Accordingly, he doesn't suffer any two-weapon fighting penalties, he suffers the "secondary natural attack" penalties. In other words, he gets to attack with his claw at a -5 penalty (improved to -2 because of the Multiattack feat) and only applies 1/2 his Strength bonus on the damage roll.
Any questions?