Misc/Fixups (#391)

* lost spell effect/aura declaration changes from 0e0116b27
     * case-sensitivity conflict (ID => id) caused by 77f81c1bd
This commit is contained in:
Amandil
2024-02-28 04:57:55 -10:00
committed by GitHub
parent 9aeb2177cf
commit b2ca072120
2 changed files with 4 additions and 4 deletions

View File

@@ -1120,7 +1120,7 @@ SqlGen::register(new class extends SetupScript
CLI::write(' * #4 Quest', CLI::LOG_BLANK, true, true);
$quests = DB::World()->select(
'SELECT RewardTitle AS ARRAY_KEY, id, SUM(qty) AS qty, BIT_OR(side) AS side, IF(COUNT(DISTINCT `zone`) > 1, 0, `zone`) AS "zone"
'SELECT RewardTitle AS ARRAY_KEY, id AS id, SUM(qty) AS qty, BIT_OR(side) AS side, IF(COUNT(DISTINCT `zone`) > 1, 0, `zone`) AS "zone"
FROM (SELECT RewardTitle, ID, 1 AS qty, IF(AllowableRaces & 0x2B2 AND !(AllowableRaces & 0x44D), 2, IF(AllowableRaces & 0x44D AND !(AllowableRaces & 0x2B2), 1, 3)) AS side, GREATEST(QuestSortID, 0) AS "zone" FROM quest_template WHERE RewardTitle > 0) q
GROUP BY RewardTitle'
);

View File

@@ -494,9 +494,9 @@ SqlGen::register(new class extends SetupScript
LEFT JOIN dbc_talent t3 ON t3.rank3 = s.id
WHERE effect3CreateItemId > 0 AND (effect3Id in (?a) OR effect3AuraId in (?a)) AND t1.id IS NULL AND t2.id IS NULL AND t3.id IS NULL
',
SpellList::$effects['itemCreate'], SpellList::$auras['itemCreate'],
SpellList::$effects['itemCreate'], SpellList::$auras['itemCreate'],
SpellList::$effects['itemCreate'], SpellList::$auras['itemCreate']);
SpellList::EFFECTS_ITEM_CREATE, SpellList::AURAS_ITEM_CREATE,
SpellList::EFFECTS_ITEM_CREATE, SpellList::AURAS_ITEM_CREATE,
SpellList::EFFECTS_ITEM_CREATE, SpellList::AURAS_ITEM_CREATE);
$itemInfo = DB::World()->select('SELECT entry AS ARRAY_KEY, displayId AS d, Quality AS q FROM item_template WHERE entry IN (?a)', $itemSpells);
foreach ($itemSpells as $sId => $itemId)