If you want to lom down a skill to 0 and have under 5 skillpoints left (i.e. 2), the lom pills are not going to be effective. The pill will vanish and you will get a message of your new mainskill level, which will still be the same as before.

There a simple else-if statement, checking if the remaining skill is under 5 points, and therefore sending an error message will mask this problem. "You may not use these lom pills if you have less than 5 skillpoints left."

For a proper solution, the lom-system may be aligned to 1 skillpoint and the xp that will be lost calculated * 1 (or 5 in the old way) to allow the player to still reset the last remaining skillpoints.