po-devs/pokemon-online — pull request #772 by CrystalMoogle (2013-11-14 09:28:50+00:00)
Title: Fix solid rock/filter/expert belt

The two while loops before these checks, made sure that typeMod is always equal to 0. So I used a similar method to what berries use to make sure it gets the original typeMod.