Profiler/Talents

* fix grabbing unused gyph items for spec (like 44432)
This commit is contained in:
Sarjuuk
2025-07-24 16:44:12 +02:00
parent dfefa914af
commit 7a803a8783

View File

@@ -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);
}
}
}