Skip to content

Commit

Permalink
ChampionGG: perk styles fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzzzen committed Oct 29, 2018
1 parent 7aec135 commit 6a3dbb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions objects/providers/ChampionGG.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ class ChampionGGProvider extends Provider {

$("img[src*='perk-images']", $("div[class^=Slot__LeftSide]")).each(function(index) {
let page = Math.trunc(index / 8), perk = $(this).attr("src").slice(38);
if (index % 8 === 0) pages[page].primaryStyleId = Mana.gameClient.perks.find(x => x.icon === perk).id;
else if (index % 8 === 5) pages[page].subStyleId = Mana.gameClient.perks.find(x => x.icon === perk).id;
if (index % 8 === 0) pages[page].primaryStyleId = Mana.gameClient.findPerkStyleByImage(perk).id;
else if (index % 8 === 5) pages[page].subStyleId = Mana.gameClient.findPerkStyleByImage(perk).id;
else pages[page].selectedPerkIds.push(Mana.gameClient.findPerkByImage(perk).id);
});

Expand Down

0 comments on commit 6a3dbb6

Please sign in to comment.