mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Profiler/Talents
* fix grabbing unused gyph items for spec (like 44432)
This commit is contained in:
@@ -528,10 +528,21 @@ class Profiler
|
|||||||
$gProps[$j] = $g[$i]['g'.$j];
|
$gProps[$j] = $g[$i]['g'.$j];
|
||||||
|
|
||||||
if ($gProps)
|
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);
|
$data['glyphs'.($i + 1)] = implode(':', $gItems);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$t = array(
|
$t = array(
|
||||||
'spent' => [$data['talenttree1'], $data['talenttree2'], $data['talenttree3']],
|
'spent' => [$data['talenttree1'], $data['talenttree2'], $data['talenttree3']],
|
||||||
|
|||||||
Reference in New Issue
Block a user