Changes the user’s type to a random type either resistant or immune to the last move used against it.