mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Profiler/Completion
* move spells w/o source to excludeGroup unavailable shouldn't hide. They may have been available in the past.
This commit is contained in:
@@ -211,6 +211,10 @@ if (!CLI)
|
|||||||
$exAdd(Type::SPELL, $mount, PR_EXCLUDE_GROUP_REQ_TAILORING);
|
$exAdd(Type::SPELL, $mount, PR_EXCLUDE_GROUP_REQ_TAILORING);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach ($mountz->iterate() as $id => $_)
|
||||||
|
if (!$mountz->getSources($__, $___))
|
||||||
|
$exAdd(Type::SPELL, $id, PR_EXCLUDE_GROUP_UNAVAILABLE);
|
||||||
|
|
||||||
foreach (CLISetup::$localeIds as $l)
|
foreach (CLISetup::$localeIds as $l)
|
||||||
{
|
{
|
||||||
set_time_limit(5);
|
set_time_limit(5);
|
||||||
@@ -256,6 +260,10 @@ if (!CLI)
|
|||||||
$companionz = new SpellList($condition);
|
$companionz = new SpellList($condition);
|
||||||
$legit = DB::Aowow()->selectCol('SELECT `spellId2` FROM ?_items WHERE `class` = ?d AND `subClass` = ?d AND `spellId1` IN (?a) AND `spellId2` IN (?a)', ITEM_CLASS_MISC, 2, LEARN_SPELLS, $companionz->getFoundIDs());
|
$legit = DB::Aowow()->selectCol('SELECT `spellId2` FROM ?_items WHERE `class` = ?d AND `subClass` = ?d AND `spellId1` IN (?a) AND `spellId2` IN (?a)', ITEM_CLASS_MISC, 2, LEARN_SPELLS, $companionz->getFoundIDs());
|
||||||
|
|
||||||
|
foreach ($companionz->iterate() as $id => $_)
|
||||||
|
if (!$companionz->getSources($__, $___))
|
||||||
|
$exAdd(Type::SPELL, $id, PR_EXCLUDE_GROUP_UNAVAILABLE);
|
||||||
|
|
||||||
foreach (CLISetup::$localeIds as $l)
|
foreach (CLISetup::$localeIds as $l)
|
||||||
{
|
{
|
||||||
set_time_limit(5);
|
set_time_limit(5);
|
||||||
@@ -336,8 +344,11 @@ if (!CLI)
|
|||||||
$cnd = array_merge($baseCnd, [['skillLine1', $s]]);
|
$cnd = array_merge($baseCnd, [['skillLine1', $s]]);
|
||||||
$recipez = new SpellList($cnd);
|
$recipez = new SpellList($cnd);
|
||||||
$created = '';
|
$created = '';
|
||||||
foreach ($recipez->iterate() as $__)
|
foreach ($recipez->iterate() as $id => $__)
|
||||||
{
|
{
|
||||||
|
if (!$recipez->getSources($__, $___))
|
||||||
|
$exAdd(Type::SPELL, $id, PR_EXCLUDE_GROUP_UNAVAILABLE);
|
||||||
|
|
||||||
foreach ($recipez->canCreateItem() as $idx)
|
foreach ($recipez->canCreateItem() as $idx)
|
||||||
{
|
{
|
||||||
$id = $recipez->getField('effect'.$idx.'CreateItemId');
|
$id = $recipez->getField('effect'.$idx.'CreateItemId');
|
||||||
|
|||||||
Reference in New Issue
Block a user