Because hmon_hitmon caches the monster data type, it needs to update this whenever the monster might polymorph. It already did this for potions, but not for jousting. There are other more complex ways this could be addressed.