patched for api 1.2/2.2 (http://developer.riotgames.com/discussion/riot-games-api/show/rXIx7RPr)