meraki-analytics / orianna

A Java framework for the Riot Games League of Legends API (http://developer.riotgames.com/).
MIT License
182 stars 56 forks source link

Getting drakes and nashors data from ID Match #48

Closed ghost closed 8 years ago

ghost commented 8 years ago

Good morning, last version of Orianna I used to get the time of the drakes and the nahors of a match i couldn't do it properly. I'm doing by the match.getTimeline().getFrames().get(j).getEvents().get(i).getParticipant().getTeam() method but the problem is I get the time, the monster type but not the team, it appears null. Would this be fixed on new version?

Thanks.

robrua commented 8 years ago

Hey - I assume that you're trying to get which team killed the dragons/barons? In this case you should use match.getTimeline().getFrames().get(j).getEvents().get(i).getKiller().getTeam() instead, and you should get the right value.

This shouldn't have been affected by any recent changes, so it'll likely work on whatever version you're using (though I do recommend always using as recent a version as you can).

ghost commented 8 years ago

Okay, i actually love you more than ever. Thanks m8!

robrua commented 8 years ago

No problem