mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
moved shared code from the type-classes to commen parent-class
conditions for the type-lists should be more flexible to use
This commit is contained in:
@@ -147,7 +147,7 @@ if (!defined('AOWOW_REVISION'))
|
||||
if (!isset($castItems[$spl->Id]))
|
||||
$castItems[$spl->Id] = new ItemList([['spellid_1', '=', $spl->Id], ['name', 'NOT LIKE', 'Scroll of Enchant%']]); // do not reuse enchantment scrolls
|
||||
|
||||
foreach ($castItems[$spl->Id]->itemList as $item)
|
||||
foreach ($castItems[$spl->Id]->container as $item)
|
||||
{
|
||||
$ench['name'][] = Util::jsEscape(Util::localizedString($item->template, 'name'));
|
||||
$ench['source'][] = -$item->Id;
|
||||
|
||||
Reference in New Issue
Block a user