When the effects procedure gets an effect request but there is no originator (as is the case with pills, but also with ASL bombs and some other effects), then the attack skill parameter is treated as a skill rank rather than a skill number. The skill rank given to the regen pills is 25, but since the effect can't be resisted anyhow that could just as well be 5, 57, or even 0.