Is trap disarming chance affected by focus?

I was disarming a bunch of mines and I noticed that they seemed to be failing more often the more pain my character was in and the lower the focus was. Does either of these things effect the chances of disarming a trap (first one would seem logical to me, but lower focus doesn’t).

@spicyshadow: This doesn’t seems like a bug to me, and you don’t seem to imply it’s a bug, so I’ve moved this topic over to The Bunker section of the forum.

I think dexterity affects the chance of disarming, and higher pain usually means lower dexterity.