Thanks again for this script it saves me lot of times. I see in the source code that you have harcoded some list of titans and heroes that works in brawl. I just want to share that olympus has provided a script that return the winning titans compare to your defender. In this example below, I try to find a team that beat "Hyperion","Mairi","Moloch","Nova","Sigurd"
Hi,
Thanks again for this script it saves me lot of times.
I see in the source code that you have harcoded some list of titans and heroes that works in brawl.
I just want to share that olympus has provided a script that return the winning titans compare to your defender.
In this example below, I try to find a team that beat "Hyperion","Mairi","Moloch","Nova","Sigurd"
curl ^"https://herowars-olympus.com/wp-admin/admin-ajax.php^" ^
-H ^"accept: */*^" ^
-H ^"accept-language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7^" ^
-H ^"content-type: application/x-www-form-urlencoded^" ^
-H ^"origin: https://herowars-olympus.com^" ^
-H ^"priority: u=1, i^" ^
-H ^"referer: https://herowars-olympus.com/hero-wars-titan-brawls/^" ^
-H ^"sec-ch-ua: ^\^"Google Chrome^\^";v=^\^"143^\^", ^\^"Chromium^\^";v=^\^"143^\^", ^\^"Not A(Brand^\^";v=^\^"24^\^"^" ^
-H ^"sec-ch-ua-mobile: ?0^" ^
-H ^"sec-ch-ua-platform: ^\^"Windows^\^"^" ^
-H ^"sec-fetch-dest: empty^" ^
-H ^"sec-fetch-mode: cors^" ^
-H ^"sec-fetch-site: same-origin^" ^
-H ^"user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36^" ^
--data-raw ^"action=titan_planner_v3_search^&nonce=9eed90f1fe^&defenders=^%^5B^%^22Sigurd^%^22^%^2C^%^22Nova^%^22^%^2C^%^22Hyperion^%^22^%^2C^%^22Mairi^%^22^%^2C^%^22Moloch^%^22^%^5D^&locked_titan=^"
The reply is
{
"success": true,
"data": {
"matches": [
{
"defenders": [
"Sigurd",
"Moloch",
"Nova",
"Mairi",
"Hyperion"
],
"attackers": [
"Moloch",
"Solaris",
"Araji",
"Tenebris",
"Ignis"
],
"wins": 1,
"losses": 0,
"solved_by": ""
},
{
"defenders": [
"Hyperion",
"Mairi",
"Moloch",
"Nova",
"Sigurd"
],
"attackers": [
"Sigurd",
"Mort",
"Nova",
"Hyperion",
"Tenebris"
],
"wins": 27,
"losses": 0,
"solved_by": ""
},
{
"defenders": [
"Hyperion",
"Mairi",
"Moloch",
"Nova",
"Sigurd"
],
"attackers": [
"Sigurd",
"Mort",
"Nova",
"Hyperion",
"Tenebris"
],
"wins": 0,
"losses": 0,
"solved_by": ""
}
],
"count": 3,
"locked_titan": ""
}
}
Cf https://herowars-olympus.com/hero-wars-titan-brawls/ for more details