From 7a803a8783afa1b73d76406dfaa0fcca4c186bd7 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Thu, 24 Jul 2025 16:44:12 +0200 Subject: [PATCH] Profiler/Talents * fix grabbing unused gyph items for spec (like 44432) --- includes/components/profiler.class.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/includes/components/profiler.class.php b/includes/components/profiler.class.php index afb5d884..7d0ee910 100644 --- a/includes/components/profiler.class.php +++ b/includes/components/profiler.class.php @@ -528,8 +528,19 @@ class Profiler $gProps[$j] = $g[$i]['g'.$j]; if ($gProps) - if ($gItems = DB::Aowow()->selectCol('SELECT i.`id` FROM ?_glyphproperties gp JOIN ?_spell s ON s.`effect1MiscValue` = gp.`id` AND s.`effect1Id` = ?d JOIN ?_items i ON i.`class` = ?d AND i.`spellId1` = s.`id` WHERE gp.`id` IN (?a)', SPELL_EFFECT_APPLY_GLYPH, ITEM_CLASS_GLYPH, $gProps)) + { + $gItems = DB::Aowow()->selectCol( + 'SELECT i.`id` + FROM ?_glyphproperties gp + JOIN ?_spell s ON s.`effect1MiscValue` = gp.`id` AND s.`effect1Id` = ?d + JOIN ?_items i ON i.`class` = ?d AND i.`spellId1` = s.`id` AND (i.`cuFlags` & ?d) = 0 + WHERE gp.`id` IN (?a)', + SPELL_EFFECT_APPLY_GLYPH, ITEM_CLASS_GLYPH, CUSTOM_DISABLED | CUSTOM_UNAVAILABLE | CUSTOM_EXCLUDE_FOR_LISTVIEW, $gProps + ); + + if ($gItems) $data['glyphs'.($i + 1)] = implode(':', $gItems); + } } }