Reminder: lore.c, line 939 should be:

Code:

chance2 = 12 + 83 * (chance - (race->ac * 2 / 3)) / chance;
if (chance2 < 12) chance2 = 12;

For clarity, you may wish to use (100 - 17) instead of 83.

Remove all the other nonsense in computing the probability to get a hit.

Edit: As it stands, this is a real problem for Mages and Priests when figuring out what attack to use. The broken code significantly overestimates hit chance when chance is below 60%.