Closed ghost closed 3 years ago
Hi @Saz4nd0ra, thanks for opening the issue. I've opened #46 to fix this issue. Can you maybe verify that it does in fact fix your issue?
It kinda does.. now it works flawlessly with champions that have spaces, and some with apostrophes, for example Vel'Koz, Kha'Zix and Kog'Maw work, but Kai'Sa doesn't? Still using the example that I provided in the issue.
One little update since I kept on trying things out and worked on something, right now it seems like only Kai'Sa isn't working, but the error that I get is json: cannot unmarshal array into Go struct field .spells.vars.coeff of type float64
, which seems to be caused by the Q spell having an array instead of an float64.. maybe that helps!
Currently client.DataDragon.GetChampion() fails for specific champions, or at least for me, I went ahead and tested it with a slightly changed version of your example code:
Output for Kai'Sa:
Output for Ashe: