From 6a32c770cd279e462cfa6c22bde41322bad35c59 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 19 Oct 2025 22:42:50 +0200 Subject: [PATCH] Profiler/Pets * catch error case where a player owns a pet that is no longer tameable/has no pet family --- includes/components/profiler.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/components/profiler.class.php b/includes/components/profiler.class.php index 943a986d..37a30e24 100644 --- a/includes/components/profiler.class.php +++ b/includes/components/profiler.class.php @@ -619,6 +619,12 @@ class Profiler $petData['entry'] ); + if (!$morePet) + { + trigger_error('char #'.$charGuid.' on realm #'.$realmId.' owns pet #'.$petGuid.' (creature entry: #'.$petData['entry'].') without pet family. skipping...', E_USER_WARNING); + continue; + } + $_ = DB::Aowow()->selectCol('SELECT `spell` AS ARRAY_KEY, MAX(IF(`spell` IN (?a), `rank`, 0)) FROM ?_talents WHERE `class` = 0 AND `petTypeMask` = ?d GROUP BY `row`, `col` ORDER BY `row`, `col` ASC', $petSpells ?: [0], 1 << $morePet['type']); $pet = array( 'id' => $petGuid,