If R switches out Shedinja and sends AGAIN Magcargo, will he be a Water-type or a his usual type?

If this would work, here's my combo. Wailord uses Soak and after, Roar. He does this with every single Pokemon of my opponent's team and then Wailord would switch out to a Rain Sweeper who would have Thunder or Hurricane or both!