Setup/Spells

* manually set several trade skills and related items as unavailable
 * don't use unavailable trade skills to resolve reagent dependencies
   on Spell Detail Page
 * closes #499
This commit is contained in:
Sarjuuk 2026-03-27 00:06:17 +01:00
parent 7906b6c942
commit 764ea1c7fa
3 changed files with 140 additions and 4 deletions

View file

@ -1344,10 +1344,11 @@ class SpellBaseResponse extends TemplateResponse implements ICache
s.`id` AS ARRAY_KEY, ic.`name` AS `iconString`
FROM ::spell s
JOIN ::icons ic ON s.`iconId` = ic.`id`
WHERE (`effect1CreateItemId` = %i AND `effect1Id` = %i)',// OR
WHERE (s.`cuFlags` & %i) = 0 AND
(`effect1CreateItemId` = %i AND `effect1Id` = %i)',// OR
// (`effect2CreateItemId` = %i AND `effect2Id` = %i) OR
// (`effect3CreateItemId` = %i AND `effect3Id` = %i)',
$itemId, SPELL_EFFECT_CREATE_ITEM //, $itemId, SPELL_EFFECT_CREATE_ITEM, $itemId, SPELL_EFFECT_CREATE_ITEM
CUSTOM_UNAVAILABLE, $itemId, SPELL_EFFECT_CREATE_ITEM //, $itemId, SPELL_EFFECT_CREATE_ITEM, $itemId, SPELL_EFFECT_CREATE_ITEM
);
if (!$spells)