Profiler/Pets

* fix talent distribution being converted to int
* store pets tamed in heroic dungeons/raids with its base entry
This commit is contained in:
Sarjuuk
2023-09-26 23:45:50 +02:00
parent 06ecfd93d5
commit a73d71b966
2 changed files with 16 additions and 7 deletions

View File

@@ -573,7 +573,7 @@ class AjaxProfile extends AjaxHandler
$profile['arenateams'] = $at;
// pets if hunter fields: [name:name, family:petFamily, npc:npcId, displayId:modelId, talents:talentString]
if ($pets = DB::Aowow()->select('SELECT name, family, npc, displayId, talents FROM ?_profiler_pets WHERE owner = ?d', $pBase['id']))
if ($pets = DB::Aowow()->select('SELECT `name`, `family`, `npc`, `displayId`, CONCAT("$\"", `talents`, "\"") AS "talents" FROM ?_profiler_pets WHERE `owner` = ?d', $pBase['id']))
$profile['pets'] = $pets;
// source for custom profiles; profileId => [name, ownerId, iconString(optional)]