Type ordering, when computing type effectiveness multipliers, seems wrong in gen 4 (possibly in gen 2 and gen 3 as well).
How does the game compute it (source: https://wiki.xn--rckteqa2e.com/wiki/ダメージ#.E7.9B.B8.E6.80.A7.E8.A3.9C.E6.AD.A3 thanks decsy for pointing it out): the game multiplies...