Items/Fixup

* fix spell struct to calculate stats from when viewing item XML
This commit is contained in:
Sarjuuk 2026-01-19 19:27:43 +01:00
parent 2e8abf6dff
commit 0ea5477d6e

View file

@ -1330,9 +1330,9 @@ class ItemList extends DBTypeList
continue;
if ($spell = DB::Aowow()->selectRow(
'SELECT `effect1AuraId`, `effect1MiscValue`, `effect1BasePoints`, `effect1DieSides`,
`effect2AuraId`, `effect2MiscValue`, `effect2BasePoints`, `effect2DieSides`,
`effect3AuraId`, `effect3MiscValue`, `effect3BasePoints`, `effect3DieSides`
'SELECT `effect1Id`, `effect1TriggerSpell`, `effect1AuraId`, `effect1MiscValue`, `effect1BasePoints`, `effect1DieSides`,
`effect2Id`, `effect2TriggerSpell`, `effect2AuraId`, `effect2MiscValue`, `effect2BasePoints`, `effect2DieSides`,
`effect3Id`, `effect3TriggerSpell`, `effect3AuraId`, `effect3MiscValue`, `effect3BasePoints`, `effect3DieSides`
FROM ?_spell
WHERE `id` = ?d',
$this->curTpl['spellId'.$h]