Added in inverting the type effectiveness if the battle is inverted

Changed the behavior for rawTypeEff and typeModStab