Skip to content

Commit c17f44d

Browse files
committed
fix new url in rune changer
1 parent 4a5ccfb commit c17f44d

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

KBotExt/GameTab.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -939,11 +939,11 @@ class GameTab
939939

940940
static std::string ChangeRunesOpgg()
941941
{
942-
std::string champSelect = LCU::Request("GET", "/lol-champ-select/v1/session");
943-
if (champSelect.empty() || champSelect.find("RPC_ERROR") != std::string::npos)
944-
{
945-
return "Champion select not found";
946-
}
942+
/* std::string champSelect = LCU::Request("GET", "/lol-champ-select/v1/session");
943+
if (champSelect.empty() || champSelect.find("RPC_ERROR") != std::string::npos)
944+
{
945+
return "Champion select not found";
946+
}*/
947947

948948
Json::CharReaderBuilder builder;
949949
const std::unique_ptr<Json::CharReader> reader(builder.newCharReader());
@@ -957,7 +957,7 @@ class GameTab
957957
//}
958958

959959
std::string currentChampion = LCU::Request("GET", "/lol-champ-select/v1/current-champion");
960-
if (currentChampion == "0")
960+
if (currentChampion == "0" || currentChampion.empty() || currentChampion.find("RPC_ERROR") != std::string::npos)
961961
{
962962
return "Champion not picked";
963963
}
@@ -989,7 +989,8 @@ class GameTab
989989
if (runes.size() == 9)
990990
break;
991991

992-
if (buf.find("src=\"https://opgg-static.akamaized.net/images/lol/perk") != std::string::npos)
992+
if (buf.find("src=\"https://opgg-static.akamaized.net/images/lol/perk") != std::string::npos
993+
|| buf.find("src=\"https://opgg-static.akamaized.net/meta/images/lol/perk") != std::string::npos)
993994
{
994995
if (buf.find("grayscale") != std::string::npos)
995996
continue;

0 commit comments

Comments
 (0)